This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

(buggy) compiling and running with multiple jar files


Bojan Antonovic writes:
 > I want to run and compile the jar file POpt.jar, which depends on 
 > JPisa.jar and SMOOD.jar. Running was "solved":
 > 
 > 1) gij -cp SMOOD.jar:JPisa.jar:POpt.jar:. -jar POpt.jar
 > 
 > Doesn't work because of a bug in gij 3.4.2.
 > 
 > 2) gij -cp SMOOD.jar:JPisa.jar:POpt.jar:. -mx=512M ProcessorOptimizer.Main
 > 
 > Works thanks to the hint of Micheal Koch.
 > 
 > Compilation is unsolved:
 > 
 > 1) gcj  -O0 -o popt --main=ProcessorOptimizer.Main 
 > --classpath=JPisa.jar:SMOOD.jar:. ProcessorOptimizer/*.class 
 > ProcessorOptimizer/*/*.class
 > 
 > Produces a internal compiler error: Bus error. I reported this bug 
 > already, where I compiled it with -save-temps.
 > 
 > 2) gcj -O0 -o popt --main=ProcessorOptimizer.Main 
 > --classpath=JPisa.jar:SMOOD.jar:. POpt.jar SMOOD.jar JPisa.jar
 > 
 > Doesn't work because it needs this amount of parameters for the 
 > classpath, and classpath seems to have an influence on bootclasspath.

You need to give us a bit more info.

 > java/awt/Component.java: In class `java.awt.Component':
 > java/awt/Component.java: In method 
 > `java.awt.Component.eventTypeEnabled(int)':
 > java/awt/Component.java:4127: error: expected type 'int' but stack 
 > contains 'void'
 > java/awt/Component.java:4127: error: verification error at PC=311
 > java/awt/Component.java:4127: error: types could not be merged
 > java/io/BufferedReader.java:0: confused by earlier errors, bailing out

This looks like a reproducable bug for which you could give us a bug
report.  But we'll need to be able to recreate the problem.

 > 3) gcj -O0 -o popt --main=ProcessorOptimizer.Main 
 > --classpath=SMOOD.jar:JPisa.jar:. ProcessorOptimizer/Main.class 
 > SMOOD.jar JPisa.jar
 > 
 > Fails for the same reasons like in 2).
 > 
 > Does somebody know a workaround ?

I can't tell from what you supply here becasue I can't reproduce your
build.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]