You are not logged in.

#1 2009-03-17 11:43:16

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Java runtime and Eclipse

Hi,

My Eclise used to work until kscreenshot requested openjdk smile . I decided to reinstall jdk; eventuall I did

# pacman -Sf eclipse jdk jre

But it still won't run:

Eclipse: A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/usr/share/eclipse/jre/bin/java
java in your current PATH

According to Wiki, there should be no trouble. What's missing?

Offline

#2 2009-03-17 11:52:40

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: Java runtime and Eclipse

What does

printenv | grep java

displays?


Till the last battle, till the last bottle.
aur - twitter

Offline

#3 2009-03-17 12:23:19

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Java runtime and Eclipse

$ printenv | grep java
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
J2SDKDIR=/usr/lib/jvm/java-1.6.0-openjdk
J2REDIR=/usr/lib/jvm/java-1.6.0-openjdk/jre

Doesn't look right, does it smile ? What am I to do about it?

Offline

#4 2009-03-17 12:34:47

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: Java runtime and Eclipse

Environment variables say that your jre and jdk are still set to open ones.
Did you logout then login after jdk/jre installation?


Till the last battle, till the last bottle.
aur - twitter

Offline

#5 2009-03-17 14:28:41

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Java runtime and Eclipse

Thanks!

After logging in the environment got better smile . Then I got right into the next trouble sad .

The tail of the log the error message referred me to:

!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-17 17:16:32.845
!MESSAGE Bundle reference:file:plugins/org.eclipse.update.ui_3.2.100.v20080318.jar [162] was not resolved.
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.ui_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.update.core_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.update.configurator_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.ui.forms_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-17 17:16:32.845
!MESSAGE Bundle reference:file:dropins/subclipse/eclipse/plugins/org.tigris.subversion.subclipse.doc_1.3.0.jar [257] was not resolved.
!SUBENTRY 2 org.tigris.subversion.subclipse.doc 2 0 2009-03-17 17:16:32.845
!MESSAGE Missing required bundle org.eclipse.help_0.0.0.

Offline

#6 2009-03-17 20:39:59

Mr. X
Member
From: belgrade, serbia
Registered: 2007-02-28
Posts: 67

Re: Java runtime and Eclipse

I got almost the same error in log after starting fresh-installed eclipse today... :\

Last edited by Mr. X (2009-03-17 20:46:31)

Offline

#7 2009-03-17 21:05:35

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Java runtime and Eclipse

Did you by any chance change the workbench prefs which is located under workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2009-03-18 06:21:26

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Java runtime and Eclipse

Inxsible wrote:

Did you by any chance change the workbench prefs which is located under workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings

No, I didn't (at least, consciously). Indeed, the time stamps on *.prefs files in workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings are quite stale.

Offline

#9 2009-03-18 10:23:16

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: Java runtime and Eclipse

run eclipse with

eclipse -clean -debug

and inspect the log


Till the last battle, till the last bottle.
aur - twitter

Offline

#10 2009-03-18 10:42:08

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Java runtime and Eclipse

The log looks like it did before:

!MESSAGE Bundle reference:file:plugins/org.eclipse.update.scheduler_3.2.100.v20080404.jar [89] was not resolved.
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.update.core_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.update.ui_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.ui_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.scheduler 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.update.configurator_[3.1.100,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-18 13:37:03.000
!MESSAGE Bundle reference:file:plugins/org.eclipse.update.ui_3.2.100.v20080318.jar [90] was not resolved.
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.ui_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.update.core_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.update.configurator_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.update.ui 2 0 2009-03-18 13:37:03.000
!MESSAGE Missing required bundle org.eclipse.ui.forms_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-18 13:37:03.000
!MESSAGE Bundle reference:file:dropins/subclipse/eclipse/plugins/org.tigris.subversion.subclipse.doc_1.3.0.jar [97] was not resolved.
!SUBENTRY 2 org.tigris.subversion.subclipse.doc 2 0 2009-03-18 13:37:03.001
!MESSAGE Missing required bundle org.eclipse.help_0.0.0.

Is it OK just to delete workspace (nothing precious there)?

Offline

#11 2009-03-18 10:50:44

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: Java runtime and Eclipse

I think that workspace couldn't interfere with that, since plugins are installed into /opt/eclipse/plugins .
You could try to download manually those .jar and put them in plugins/ folder, otherwise try to install another eclipse package (eclipse-jee works for me). If the problem still remains then file a bug on flyspray.


Till the last battle, till the last bottle.
aur - twitter

Offline

#12 2009-03-18 15:59:35

markatto
Member
From: Ann Arbor, MI, USA
Registered: 2009-02-23
Posts: 13

Re: Java runtime and Eclipse

The current eclipse package seems to be very broken... Especially trying to install the C++ package seems to break the installation badly, to the point where simply removing it and reinstalling the base doesn't work hmm

Last edited by markatto (2009-03-18 16:05:34)

Offline

#13 2009-03-19 06:04:59

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Java runtime and Eclipse

I got vanilla Eclipse installed on two boxes; the one where openjdk never intruded works normally.

Offline

Board footer

Powered by FluxBB