Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-20-2003, 10:55 AM
|
#1
|
Member
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54
Rep:
|
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.
|
|
|
12-21-2003, 06:39 PM
|
#2
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
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
|
|
|
12-21-2003, 07:42 PM
|
#3
|
Member
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54
Original Poster
Rep:
|
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
|
|
|
12-22-2003, 05:53 AM
|
#4
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
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)
Last edited by titanium_geek; 12-22-2003 at 05:55 AM.
|
|
|
12-22-2003, 06:30 PM
|
#5
|
Member
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54
Original Poster
Rep:
|
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?
|
|
|
12-23-2003, 05:20 AM
|
#6
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
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 11:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|