LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Need help fixing java compiling problem (https://www.linuxquestions.org/questions/programming-9/need-help-fixing-java-compiling-problem-127565/)

emu_123 12-20-2003 10:55 AM

Need help fixing java compiling problem
 
Hi,

The situation is that I am compiling open office from the cvs source and so far I have been able to fix any problems that I have run into. But this one has got me buggered to know whats going on.

What I am looking for is information on how I would work out what is causing this problem and how I would go about solving it. Any information at all would help but please do remember that my java skills are pretty basic. I dont really know what information you may need to help me with this, but I will post the error message from the compilation and if more info is needed then just ask and I will try to provide it.

The error message is as follows:

java -Xmx128m org.apache.tools.ant.Main -Djava.home=/opt/j2sdk/j2sdk-1.4.1 -Dant.home=/opt/ant -Dprj=.. -Dprjname=scripting -Ddebug=off -Doptimize=on -Dtarget=scriptruntimeforjava -Dsolar.update=on -Dout=../unxlngi4.pro -Dinpath=unxlngi4.pro -Dproext=.pro -Dsolar.bin=/home/emu/open_office_cvs_tree/solver/680/unxlngi4.pro/bin -Dsolar.jar=/home/emu/open_office_cvs_tree/solver/680/unxlngi4.pro/bin -Dsolar.doc=/home/emu/open_office_cvs_tree/solver/680/unxlngi4.pro/doc -f build.xml -emacs
Buildfile: build.xml

clean:

prepare:

compile:
Compiling 25 source files to /home/emu/open_office_cvs_tree/scripting/unxlngi4.pro/class
This version of java does not support the classic compiler; upgrading to modern
/home/emu/open_office_cvs_tree/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java:82: cannot resolve symbol
symbol : method openFile (java.lang.String)
location: class org.mozilla.javascript.tools.debugger.Main
sdb.openFile(filename);
^
/home/emu/open_office_cvs_tree/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java:89: cannot resolve symbol
symbol : method openStream (java.io.InputStream)
location: class org.mozilla.javascript.tools.debugger.Main
sdb.openStream(in);
^
2 errors

BUILD FAILED

If any more info is needed, just post and I will provide it. Any info on how to fix this would be greatly appeciated. Thanks in advance.

titanium_geek 12-21-2003 06:39 PM

umm.. could you say what you're trying to do?
(ie.. i type: java whatever, this is my error message)

could help us solve your problem.

titanium_geek

emu_123 12-21-2003 07:42 PM

Thanks for the reply. I've got to be quick though cause I have a train to catch in about 20 mins.

What is basically going on here is that I am trying to compile open office. The part that is failing (above) is their method of debugging through mozilla javascript. It has symbols that cannot be resolved. Now, my problem is that I have really no idea what symbols are in relation to java.

It would probably be best if I read up on java whilst I am away and then if I can still not resolve this problem, I will at least be able to give a clearer picture of what the problem is.

Thankyou

titanium_geek 12-22-2003 05:53 AM

looking at that message again, looks like a dodgy piece of code, or maybe the java compiler you're using is out of date. Could be possible, especially if you have an older distro with 0 updates. Or maybe the code is corrupt. Try downloading/getting another copy of Open Office.
Of course, you could try going in and fixing the code yourself, but if your Java is pretty basic, then I wouldn't reccomend that.

titanium_geek

PS go the Aussies!! (I'm one living abroad)

emu_123 12-22-2003 06:30 PM

Well my java should be ok since I downloaded and compiled it on the weekend cause my mozilla needs a java plugin thats compiled with my gcc. I dont think I got any warnings or anything like that when I compiled it.

Could this be caused by maybe not having the java script compiled using my java or even it being compiled with my java? Is there any problems that are related to having java compiled with gcc 3.3.2?

I should have enough time to recompile the java script stuff cause of the trains not running til later on today, so I will see if that helps.

Also, not being able to resolve the symbols means that it (the compiler) cant find the function for it right?

titanium_geek 12-23-2003 05:20 AM

my experiance with Java (straight programing stuff) is when it has a character error, then it "doesn't like it". I have to go in and fix my code,
but then again, that's personal java projects.
I don't have much clue about java in general, just the programing lang.

sorry I couldn't be more helpful

titanium_geek


All times are GMT -5. The time now is 05:47 AM.