LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 12-20-2003, 10:55 AM   #1
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
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.
 
Old 12-21-2003, 06:39 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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
 
Old 12-21-2003, 07:42 PM   #3
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
Old 12-22-2003, 05:53 AM   #4
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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.
 
Old 12-22-2003, 06:30 PM   #5
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Original Poster
Rep: Reputation: 15
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?
 
Old 12-23-2003, 05:20 AM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with fixing amarok for mp3's the1wraith Linux - Newbie 4 11-13-2005 08:30 PM
Need help fixing my Java install A6Quattro Linux - Software 3 07-08-2005 03:45 PM
Fixing Mozilla resolving host problem geoff_f Linux - Software 0 06-03-2004 07:10 AM
Fixing sun java once and for all Ogledbyoldmen Linux - Software 17 10-21-2003 07:43 PM
Problem compiling in Forte for Java cubed Programming 0 07-11-2001 11:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration