LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-02-2008, 07:32 AM   #1
144419855310001
Member
 
Registered: Apr 2006
Distribution: ubuntu 7.04
Posts: 219

Rep: Reputation: 30
can't compile, java classpath problem


Hi

I'm trying to compile a program called anyremote-J2ME-client.
(The purpose of anyremote is to allow you to control your computer with your mobile / cell phone using bluetooth).

anyremote-J2ME-client is dependent on ProGuard and Sun Java Wireless Toolkit (http://java.sun.com/products/sjwtoolkit/).

Using Ubuntu 8.04 amd 64, I have java wireless toolkit installed from source package to the directory /usr/WTK2.5.2, and proguard, java jre and jdk installed from deb packages, e.g.
Quote:
dpkg -l | grep jdk
ii openjdk-6-jdk 6b11-2ubuntu2
ii openjdk-6-jre 6b11-2ubuntu2
ii openjdk-6-jre-headless 6b11-2ubuntu2
ii openjdk-6-jre-lib 6b11-2ubuntu2

On trying make I get:
Quote:
root@home:/usr/local/anyremote-J2ME-client-4.8# make
Making all in src
make[1]: Entering directory `/usr/local/anyremote-J2ME-client-4.8/src'
test -z tmpclasses || mkdir -p -- . tmpclasses
javac -bootclasspath yes/lib/midpapi20.jar:yes/lib/cldcapi10.jar \
-g:none -target 1.1 -source 1.3 -classpath yes/lib/jsr082.jar \
-d tmpclasses *.java
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
make[1]: *** [compile] Error 3
make[1]: Leaving directory `/usr/local/anyremote-J2ME-client-4.8/src'
make: *** [all-recursive] Error 1
I tried:
Quote:
export CLASSPATH=/usr/WTK2.5.2
export BOOTCLASSPATH=/usr/WTK2.5.2
export WTK_HOME=/usr/WTK2.5.2
But I don't really know what I'm doing and it didn't make any difference.

Odd thing is if I try changing the configure command from:
Quote:
root@home:/usr/anyremote-J2ME-client-4.8# ./configure --with-wtk /usr/WTK2.5.2 --with-proguard /usr/bin/proguard
to:
Quote:
root@home:/usr/anyremote-J2ME-client-4.8# ./configure --with-wtk /some/random/directory --with-proguard /usr/bin/proguard
Again, I get the same error! Is anyremote-J2ME-client not finding my WTK2.5.2 installation for some reason? If it had found it, I expect that changing the --with-wtk flag from the correct directory /usr/WTK2.5.2 would have made some difference...

Thanks!
 
Old 09-02-2008, 02:41 PM   #2
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
Hi.

The line

Code:
javac -bootclasspath yes/lib/midpapi20.jar:yes/lib/cldcapi10.jar \
-g:none -target 1.1 -source 1.3 -classpath yes/lib/jsr082.jar \
-d tmpclasses *.java
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
shows the reason why make is bailing.

It seems, that your jdk-classes are not part of javac's classpath (Unable to find package java.lang ..) in the executing environment of the make script. Check your java-environment on your box.


Hope this helps.

Last edited by Quis; 09-02-2008 at 02:42 PM.
 
Old 09-02-2008, 05:26 PM   #3
144419855310001
Member
 
Registered: Apr 2006
Distribution: ubuntu 7.04
Posts: 219

Original Poster
Rep: Reputation: 30
Hi thanks for the reply, as it happens the answer turns out to be more basic...

Quote:
root@home:/usr/anyremote-J2ME-client-4.8# ./configure --with-wtk /usr/WTK2.5.2 --with-proguard /usr/share/java

should have been...


Quote:
root@home:/usr/anyremote-J2ME-client-4.8# ./configure --with-wtk=/usr/WTK2.5.2 --with-proguard=/usr/share/java

...dumb

I blame it on the no sleep I had the night before!

ta

Last edited by 144419855310001; 09-02-2008 at 05:35 PM.
 
  


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
CLASSPATH in java abd_bela Programming 3 08-26-2008 06:43 AM
Newbie java classpath problem MarkSlack Linux - Newbie 11 12-19-2007 08:00 AM
Java Classpath jadewarrior Red Hat 2 06-08-2006 01:12 AM
java and classpath mac1234mac Programming 5 03-17-2006 09:05 AM
How to set classpath for java jolly Linux - Software 3 04-22-2003 10:02 PM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration