WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Dr. Java help  (Read 1501 times)

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Dr. Java help
« on: April 07, 2020, 04:10:14 AM »
Hi I downloaded a lightweight java IDE called Dr. Java which is in jar file. I successfully compiled a test program but failed to run it. Here's the message:


Quote
JVM failed to start.  Make sure a firewall is not blocking
inter-process communication.  See the console tab for details.

Console tab:

Quote
java.io.IOException: Unable to run process; class path may need to be adjusted
   at edu.rice.cs.plt.concurrent.ProcessTaskController$1.run(ProcessTaskController.java:157)
   at java.lang.Thread.run(Thread.java:745)

P.S. I tried putting the file into the root folder and also run via sudo command

Offline neonix

  • Sr. Member
  • ****
  • Posts: 302
Re: Dr. Java help
« Reply #1 on: April 07, 2020, 12:20:10 PM »
Hello cute curtis

There's no much information what extension with java you installed, what version of TC you use and what command you typed. I'm not an expert in java but when I want to run something I use:
Quote
tce-load -iw openjdk-8-jre.tcz
/usr/local/openjdk-8/jre/bin/java -jar *.jar

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Dr. Java help
« Reply #2 on: April 07, 2020, 02:13:49 PM »
Hi, I;m currently on TC11 and I've already installed On-boot openjdk-8-jre.tcz.  You could download the jar file here to test run the IDE
http://www.drjava.org/

then execute the command

Code: [Select]
java -jar drjava-stable-20120818-r5686.jar
P.S. Dr Java is running but running my compiled program under this IDE produces error

Quote
JVM failed to start.  Make sure a firewall is not blocking
inter-process communication.  See the console tab for details.

Code: [Select]
java.io.IOException: Unable to run process; class path may need to be adjusted
   at edu.rice.cs.plt.concurrent.ProcessTaskController$1.run(ProcessTaskController.java:157)
   at java.lang.Thread.run(Thread.java:745)


Offline neonix

  • Sr. Member
  • ****
  • Posts: 302
Re: Dr. Java help
« Reply #3 on: April 08, 2020, 08:36:18 AM »
Quote
tce-load -iw sun-jre7.tcz
/usr/local/java-sun/jre/bin/java -jar *.jar
Using openjdk-8-jre.tcz I get the error, with un-jre7.tcz there is no error.
I paste the error code to the search engine and there was sugestion to use older verion of Java.
https://sourceforge.net/p/drjava/support-requests/245/

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Dr. Java help
« Reply #4 on: April 09, 2020, 12:35:48 AM »
Working great, thanks a lot! P.S. also works with openjdk-7-jre.tcz. I wonder how could I make this an extension as it is a single file.