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.

Bug 9726 - Fastjavac: doesn't put lib/ext to the CLASSPATH, so I can't compile sources related to openide,etc.
Summary: Fastjavac: doesn't put lib/ext to the CLASSPATH, so I can't compile sources r...
Status: VERIFIED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Ivan Bradac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-20 18:41 UTC by dmladek
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fastjavac miss all CLASSPATH containing lib/ext (12.11 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2001-02-20 18:41:18 UTC
[Build-010219_1]
jdk1.3
rh70
=================


In my sources I use NB OpenAPI.
Import org.openide.TopManager

Tried to compile my sources and it fails:
support/GenericVCSTestSupport.java [35:1] Class org.openide.ServiceType$Registry
not found in type declaration or import.
import org.openide.TopManager;
                   ^
org/openide/ServiceType.java [177:1] Class org.openide.ServiceType$Registry is
already defined in '
    public static abstract class Registry implements java.io.Serializable {
                                 ^
/home.local/danielm/.A/Build.Test/CVS/JiriAutomatTest/Testy_Vyvoj/support/GenericVCSTestSupport.java:
Class org.apache.regexp.RESyntaxException not found in type declaration or
import.
/home.local/danielm/.A/Build.Test/CVS/JiriAutomatTest/Testy_Vyvoj/support/GenericVCSTestSupport.java:
Class org.apache.regexp.RESyntaxException not found in type declaration or
import.
support/GenericVCSTestSupport.java [32:1] Class org.apache.regexp.RE not found
in type declaration or import.
import org.netbeans.modules.vcscore.cmdline.exec.ExternalCommand;
                                                 ^
Note:
/home.local/danielm/.A/Build.Test/CVS/ide/nbsrc/org/openide/util/io/SafeException.java
uses a deprecated API.  Recompile with "-deprecation" for details.
5 errors
Errors compiling two objects.


The same sources is possible to compile by internal & external compilation

BTW: I have also mounted sources of netbeans.

I'm attaching output from ide.log :
*output of javac compiler
*output of fastjavac compiler
(in one file.)
Comment 1 dmladek 2001-02-20 18:42:17 UTC
Created attachment 648 [details]
Fastjavac miss all CLASSPATH containing lib/ext
Comment 2 Jesse Glick 2001-02-20 18:53:34 UTC
Did you perhaps have an old user directory of settings that you were reusing?
Fairly recently {libraries} in compiler types stopped including lib/ext/
(generally, startup classpath) entries; correspondingly, {classpath} was added
to the default command line used by both FastJavac and External (Javac) compiler
types. Please check whether you have {classpath} in your FastJavac compiler
type. If not, that is your problem. If so, please check the various paths on the
Expert tab of the compiler type to determine which one is at fault.

Did you load settings from an older IDE (e.g. by using the same user dir in a
multiuser installation)? Perhaps the Java module could try to specifically add
it when loading services from an older IDE that defaulted to not using
{classpath} in compiler types, but I am not sure this is safe.
Comment 3 dmladek 2001-02-20 19:28:30 UTC
good question.
Of'course I tried to save my settings from older build.
I tried it from [Build-010212] which was my last one where the multi-user mode
wasn't as default mode, to [Build-010218] which is using multi-user mode.
And there isn't any sopperted tool wor it's migration, so I done it manualy and
maybe it mixed settings from $home/forte4j_user dir with $ffj_home/system.

Also I've looked up in Fastjavac and javac Classpath:
*Filesystems Path
*Library path

I must investigate it more. But at the first look bouth contains the same paths
Comment 4 dmladek 2001-02-21 10:56:21 UTC
So here is my compilers settings:
(From Compiler Types->External/Fastjavac->Properties tab)
---------------------------------

External compiler settings:
============================
Process:
{java.home}{/}..{/}bin{/}javac

Args:
{debuginfo} {deprecation} {optimize} {outputdir} {encoding} -classpath
{filesystems}{:}{classpath}{:}{library}{:}{bootclasspath} {files}


FastJAvac compiler settings:
Process:
{ide.home}{/}bin{/}fastjavac{/}{fastjavac.wired}

Args:
{debuginfo} {deprecation} {optimize} {outputdir} {encoding} -jdk
{java.home}{/}.. -classpath {filesystems}{:}{library}{:}{bootclasspath} {files}


That's all. If I take a clear build (delete my forte4j_user dir) it works fine.
Comment 5 Ivan Bradac 2001-02-23 18:28:02 UTC
Has been forwarded to the Sun's fastjavac team.
Comment 6 Quality Engineering 2003-07-01 13:12:40 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-07-01 13:17:54 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 8 Jan Chalupa 2003-10-30 12:07:06 UTC
A mistakenly closed RESOLVED LATER/REMIND issue. Reopening.
Comment 9 Jan Pokorsky 2003-12-05 10:56:59 UTC
Fastjavac is not supported anymore and since it is a close source there is no
reason to keep this as open issue.
Comment 10 dmladek 2003-12-09 14:06:31 UTC
OK, I agree
Comment 11 Quality Engineering 2007-09-20 11:54:46 UTC
Reorganization of java component