This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Single Source File Mode | ||
---|---|---|---|
Product: | java | Reporter: | linez <linez> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | NEW --- | ||
Severity: | normal | CC: | jglick |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
linez
2010-03-11 17:59:06 UTC
Probably there could be an ActionProvider.RUN_SINGLE fallback binding for naked Java sources using JavaRunner, much as there is for *.sql and *rb. Would only work for files using no classes outside the JRE, of course. And only if they either had no package declaration, or were already in a matching package structure. (In reply to comment #1) > Probably there could be an ActionProvider.RUN_SINGLE fallback binding for naked > Java sources using JavaRunner, much as there is for *.sql and *rb. Would only > work for files using no classes outside the JRE, of course. And only if they > either had no package declaration, or were already in a matching package > structure. Hello Jeese ; Thanks for fast respond. As I said you are assuming that I will have that big java programme that I need to use in term of packages thus I need to make a new project ... What I want is simple that is to make me able to compile and run any source file without the bother of making new project , extra overhead and extra not needed files generated . If you want an example look at JCreator at www.jcreator.com and JGrasp at www.jgrasp.org regards ; OK, can be added. The question is what to add in the classpath. It should be probably consistent with DefaultClassPathProvider which adds all ClassPath.COMPILE registered in the GlobalPathRegistry. JavaRunner will differ from the CoS one as there is no cache for no project sources. The Cos JavaRunner just copies the class file the new JavaRunner will need to do the compilation. |