Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8579 closed defect (fixed)

JOSM does not use selected openjdk 7

Reported by: A_Pirard Owned by: bastiK
Priority: normal Milestone:
Component: Ubuntu package Version: tested
Keywords: Cc: A_Pirard

Description

Because of JOSM startup warning, I have installed openjdk-7-jre and openjdk-7-jre-headless.
And I have selected openjdk 7

$ update-java-alternatives -l
java-1.6.0-openjdk 1061 /usr/lib/jvm/java-1.6.0-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-7-openjdk 1061 /usr/lib/jvm/java-7-openjdk
$ sudo update-java-alternatives -s java-7-openjdk
$ java -version
java version "1.7.0_117-icedtea"
OpenJDK Runtime Environment (IcedTea7 1.14-pre) (7~b117~pre1-0lucid1)
OpenJDK Client VM (build 20.0-b02, mixed mode, sharing)

But JOSM uses openjdk 6 instead.

$ josm
Using /usr/lib/jvm/java-6-openjdk/bin/java to execute josm.

So, I ran the josm script wit a -x and here it goes...

$ ./josm
+ set -e
++ readlink -n -f /etc/alternatives/java
+ ALTERNATIVE_JDK=/usr/lib/jvm/java-7-openjdk/jre/bin/java
++ dpkg --print-architecture
+ ARCH=i386
+ grep 'install$'
+ dpkg --get-selections 'openjdk-*-jre'
+ JAVA_CMDS='/bin/java /usr/lib/jvm/java-7-openjdk-i386/bin/java /usr/lib/jvm/java-6-openjdk/bin/java /usr/lib/jvm/java-6-openjdk-i386/bin/java /usr/lib/jvm/java-6-sun/bin/java'
+ JAVA_OPTS='-Djava.net.useSystemProxies=true '
+ for jcmd in '$JAVA_CMDS'
++ readlink -n -f /bin/java
+ 'z/usr/lib/jvm/java-7-openjdk/jre/bin/java = z/bin/java?'
+ for jcmd in '$JAVA_CMDS'
++ readlink -n -f /usr/lib/jvm/java-7-openjdk-i386/bin/java
+ 'z/usr/lib/jvm/java-7-openjdk/jre/bin/java = z?'
+ for jcmd in '$JAVA_CMDS'
++ readlink -n -f /usr/lib/jvm/java-6-openjdk/bin/java
+ 'z/usr/lib/jvm/java-7-openjdk/jre/bin/java = z/usr/lib/jvm/java-6-openjdk/jre/bin/java?'
+ for jcmd in '$JAVA_CMDS'
++ readlink -n -f /usr/lib/jvm/java-6-openjdk-i386/bin/java
+ 'z/usr/lib/jvm/java-7-openjdk/jre/bin/java = z?'
+ for jcmd in '$JAVA_CMDS'
++ readlink -n -f /usr/lib/jvm/java-6-sun/bin/java
+ 'z/usr/lib/jvm/java-7-openjdk/jre/bin/java = z/usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java?'
+ for jcmd in '$JAVA_CMDS'
+ '[' -x /bin/java -a -z ']'
+ for jcmd in '$JAVA_CMDS'
+ '[' -x /usr/lib/jvm/java-7-openjdk-i386/bin/java -a -z
']'
+ for jcmd in '$JAVA_CMDS'
+ '[' -x /usr/lib/jvm/java-6-openjdk/bin/java -a -z ']'
+ JAVACMD=/usr/lib/jvm/java-6-openjdk/bin/java
+ for jcmd in '$JAVA_CMDS'
+ '-x /usr/lib/jvm/java-6-openjdk-i386/bin/java -a -z /usr/lib/jvm/java-6-openjdk/bin/java?'
+ for jcmd in '$JAVA_CMDS'
+ '-x /usr/lib/jvm/java-6-sun/bin/java -a -z /usr/lib/jvm/java-6-openjdk/bin/java?'
+ '/usr/lib/jvm/java-6-openjdk/bin/java?'
+ echo 'Using /usr/lib/jvm/java-6-openjdk/bin/java to execute josm.'
Using /usr/lib/jvm/java-6-openjdk/bin/java to execute josm.
+ exec /usr/lib/jvm/java-6-openjdk/bin/java -Djava.net.useSystemProxies=true -jar /usr/share/josm/josm.jar
Skipping to the next rule, because of an error:
org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "*" "* "" at line 32, column 5.
Was expecting one of:

<S> ...
"[" ...
">" ...
"<" ...
"!" ...
":" ...
"::" ...
"," ...
"|z" ...
"/*" ...


loading plugin 'reverter' (version 29348)
...

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by Don-vip

@team: I have updated "josm" and 'josm-latest" scripts to fix this issue but don't know what to do next to update packages ?

r37 | josm | 2013-04-06 12:52:33 +0200 (Sat, 06 Apr 2013) | 1 line
Changed paths:
   M /apt-source/latest/usr/bin/josm-latest

fix #8579 - JOSM does not use selected openjdk 7
------------------------------------------------------------------------
r36 | josm | 2013-04-06 12:50:46 +0200 (Sat, 06 Apr 2013) | 1 line
Changed paths:
   M /apt-source/tested/usr/bin/josm

fix #8579 - JOSM does not use selected openjdk 7

comment:2 Changed 7 years ago by Don-vip

Component: CoreUbuntu package
Owner: changed from team to bastiK

comment:3 Changed 7 years ago by bastiK

See apt-source/README. Also, better keep the /usr/lib/jvm/java-7-openjdk/bin/java entry in addition to /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java (for older Ubuntu versions).

comment:4 in reply to:  3 Changed 7 years ago by bastiK

Resolution: fixed
Status: newclosed

Replying to bastiK:

See apt-source/README. Also, better keep the /usr/lib/jvm/java-7-openjdk/bin/java entry in addition to /usr/lib/jvm/java-7-openjdk-$ARCH/bin/java (for older Ubuntu versions).

@Don-vip: the fix was good, I didn't read the diff properly.

comment:5 Changed 7 years ago by A_Pirard

It works. Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain bastiK.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.