bugGNU Octave - Bugs: bug #38060, Java package offers wrong advice...

 
 
Show feedback again

bug #38060: Java package offers wrong advice for setting JAVA_HOME

Submitted by:  None
Submitted on:  Fri 11 Jan 2013 06:39:17 AM UTC  
 
Category: Octave Forge PackageSeverity: 1 - Wish
Priority: 3 - LowItem Group: Feature Request
Status: PostponedAssigned to: None
Originator Name: Heimo HerttuaOriginator Email: -unavailable-
Open/Closed: OpenRelease: 3.6.2
Operating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 11 Jan 2013 03:23:45 PM UTC, comment #2:

This has been answered in the Help ML.

The OP simply hasn't read all the instructions in the wiki, esp. about the situation on Windows. I don't think he's much to blame for that as this info is hard to get anyway.

IMO the OP is right in that the pkg.m messages about misinstalled Java packages ARE misleading.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 11 Jan 2013 02:22:53 PM UTC, comment #1:

The functionality you seek just isn't implemented yet. This isn't a bug. It's a feature request.

The Java package has been integrated into core Octave in the development release, so your desired features may be implemented there later.

The only bug here is that setting JAVA_HOME is not well described.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 11 Jan 2013 06:39:17 AM UTC, original submission:

I have Windows XP sp3 32 bit and Octave 3.6.2 gcc4.6.2.

Java package installation gives misleading information and does not seem to function, as described below.

I downloaded package java-1.2.9.tar.gz, and tried to install it with command:
pkg install java-1.2.9.tar.gz

I got an error message:
Error while trying to install Java package:
environment variable 'JAVA_HOME' has not been set.

The error message suggested to set JAVA_HOME as:
(on Windows:)
<JAVA_HOME>/jre/lib/<arch>/ contains a file jvm.cfg
(<arch> depends on your system hardware, can be i386, x86_64, alpha, arm, ...)

So I tried to set it by command:
setenv("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03/jre/lib/i386")

This did not help. Then on the web (http://wiki.octave.org/Java_package) I found different suggestion to set JAVA_HOME. So I tried following:
setenv("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03")

After that the installation did not cause any errors. So the installation procedure gives misleading information on how to set JAVA_HOME.

Other thing, after seemingly successful installation java does not seem to work. I tried command:
octave:9> s = javaObject ("java.lang.String", "Hello OctaveString")
and get warning:
the `javaObject' function is not yet implemented in Octave

Same happens with command:
v = javaObject ("java.util.Vector")

So it seems that java package installation did not work at all.

I am very confused.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Jan 2013 02:22:53 PM UTCjordighSeverity3 - Normal=>1 - Wish
      Priority5 - Normal=>3 - Low
      Item GroupInstallation=>Feature Request
      StatusNone=>Postponed
      SummaryJava package installation misinformation and functionality.=>Java package offers wrong advice for setting JAVA_HOME
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup