Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
robiOffline
Post subject: wrong java links  PostPosted: 23.04.2012, 17:55



Joined: 2012-04-23
Posts: 2

Status: Offline
Hi,

aptosid installation went well, thanks for the fine work. I just had a problem with java webstart and icedtea web controll panel. I have installed openjdk-java-7 and found out that there are wrong links in /etc/alternatives/

The links of @javaws and @itweb-settings point to java-6. After changing that to java-7, everything worked fine. Now I can start applets and the settings-tool.

I did not install anything from java-6 manually and when I tried to remove openjdk-6-jre apt-get told me, that it is not installed.

I do not know if anybody else had that problem.

regards,

robi
 
 View user's profile Send private message  
Reply with quote Back to top
hubiOffline
Post subject: RE: wrong java links  PostPosted: 23.04.2012, 22:02
Moderator


Joined: 2010-09-11
Posts: 228
Location: Vienna (AT)
Status: Offline
Does this root command help?
      Code:
update-alternatives --config java

hubi

_________________
Tilos Rádió Budapest
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
slamOffline
Post subject: RE: wrong java links  PostPosted: 24.04.2012, 12:27
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Confirmed, icedtea-7-plugin still points to java-6. The related bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662239 is closed FIXED, but the problem is still there. I will re-open the bug report.
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo


Last edited by slam on 24.04.2012, 13:28; edited 1 time in total
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
slamOffline
Post subject: RE: wrong java links  PostPosted: 24.04.2012, 13:10
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Temporary hack:
      Code:
rm /etc/alternatives/javaws
rm /etc/alternatives/itweb-settings
ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws /etc/alternatives/javaws
ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings /etc/alternatives/itweb-settings

Please be aware that manually editing /etc/alternatives is a bad idea in most cases, it might break postinstall scripts from upgrades later on.
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
slamOffline
Post subject: RE: wrong java links  PostPosted: 24.04.2012, 13:53
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Bug report filed at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670259
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
DeepDayzeOffline
Post subject: Re: RE: wrong java links  PostPosted: 24.04.2012, 15:26



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
      slam wrote:
Temporary hack:
      Code:
rm /etc/alternatives/javaws
rm /etc/alternatives/itweb-settings
ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws /etc/alternatives/javaws
ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings /etc/alternatives/itweb-settings

Please be aware that manually editing /etc/alternatives is a bad idea in most cases, it might break postinstall scripts from upgrades later on.
Greetings,
Chris


Perhaps noting the original /etc/alternatives settings should be saved somewhere so they can be copied back when a fixed package becomes available so that the postinstall scripts won't break on the upgrades later
 
 View user's profile Send private message  
Reply with quote Back to top
robiOffline
Post subject: RE: Re: RE: wrong java links  PostPosted: 24.04.2012, 16:05



Joined: 2012-04-23
Posts: 2

Status: Offline
I changed the links within mc (C-x C-s). Is that the same?

regards,

robi
 
 View user's profile Send private message  
Reply with quote Back to top
slamOffline
Post subject: RE: Re: RE: wrong java links  PostPosted: 25.04.2012, 11:09
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Just to add, openjdk 6 is still default in Debian Sid, openjdk7 is just optional. However, after installing 7 the links should point to 7, and not to 6 - specially if 6 is not installed.
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio