LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-23-2007, 07:47 PM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
ptolemy II plotter compile error on Suse


Hello all,

I have found a rather nice plotter that I would like to use on my database website. It's a Java applet called ptplot 5.6 (written in Java of course).
Link here
Anyway I check to see that I have java installed
Code:
which java
/usr/bin/java
which gcj
/usr/bin/gcj
~/ptplot5.6 % rm config.* 
/local/METLIN/ptplot5.6 % setenv PTII "/local/METLIN/ptplot5.6"

dios:/local/METLIN/ptplot5.6 % ./configure
checking if $PTII ('/local/METLIN/ptplot5.6') has backslashes... ok
    '/local/METLIN/ptplot5.6' does not contain backslashes
checking if $PTII ('/local/METLIN/ptplot5.6') contains "cygdrive"... ok
    '/local/METLIN/ptplot5.6' does not contain cygdrive or cygwin, which is right.
checking for find... /usr/bin/find

PTJAVA_DIR environment variable was not set,
    so we search for the java compiler.         ##### <- ok shouldn't this be gcj ?
checking for javac... no                              ##### <- What the heck java is installed
configure: WARNING:  Failed to find javac, perhaps Java is not installed?
configure: error:
Java directory /usr/java doesn't exist.
Be sure that the directory that contains javac and java is in your path.
Typically, under Windows, this directory might be c:\jdk1.3.1\bin
For instructions about adding to a directory to your path permanently,
consult your user documentation.
Under bash, you may temporarily add a directory with something like:
  PATH=/cygdrive/c/jdk1.3.1/bin:$PATH
  export PATH
  rm config.*; ./configure
You may also try --with-java=DIR, or set the PTJAVA_DIR environment variable
to the directory where your jdk is located:
  PTJAVA_DIR=/cygdrive/c/jdk1.3.1
  export PATH
  rm config.*; ./configure
but adding the directory to your path is likely to work best.
Any ideas, I'm kind of lost and not really sure how to pick it up. I've tried setting the PTJAVA_DIR to /usr/bin but it's in my $PATH var so all should have been ok right?

Thanks for any ideas
 
Old 07-24-2007, 01:26 PM   #2
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Ok solved it myself. Found that it need Sun java only and wouldn't accept any other. So yast ed the Sun java downloaded sun1.5 devel as well. Resolved issues ./configure boom works

Hope it helps anyone with the same problem.

PB
 
  


Reply



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
really slick savers compile error suse 9.1 fails on hyperspace netsurf SUSE / openSUSE 1 06-19-2005 08:23 AM
Compile error for AirSnort, SuSe 9.1 xprimnt Linux - Newbie 1 08-14-2004 10:09 AM
kernel compile error on SuSE 9.1 kreilk Linux - Software 3 06-24-2004 03:51 PM
modem driver compile error in suse 9.0 archish Linux - Hardware 3 06-08-2004 10:00 AM
Plotter with Linux?? crashmeister Linux - Hardware 3 06-30-2002 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 PM.

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