Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / August 2004

Tip: Looking for answers? Try searching our database.

Eclipse application id problem

Thread view: 
Hans van Mourik - 20 Aug 2004 16:55 GMT
I have a problem getting Eclipse to work: The default setup complains
about having found no application id. And trying to set one doesn't work.

I'm using Eclipse 3.0 under Win2000 with java 1.4.2, and
I installed it in C:\eclipse .
When I try to set an application id in the config.ini, like
eclipse.application=org.eclipse.platform_3.0.0
or eclipse.application=org.eclipse.platform
I get results such as:

!SESSION Aug 20, 2004 16:45:16.343
---------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi Aug 20, 2004 16:45:16.343
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.platform_3.0.0"
could not be found in the registry. The applications available are: <NONE>.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:325)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at [...]

And with the default config.ini I get:

java.lang.RuntimeException: No application id has been found.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:313)
at [...]
----------------------------------------

Apparently Eclipse is looking in a registry such as:
C:\eclipse\configuration\org.eclipse.core.runtime\.registry.2
but it doesn't find any application id's there.
See method private void registerApplicationService() in
PlatformActivator.java in
C:\eclipse\plugins\org.eclipse.platform.source_3.0.0\src
\org.eclipse.core.runtime_3.0.0\runtimesrc.zip

Any help will be appreciated.

Thanks,
Hans van Mourik

--
To get my proper address, do s/nospam/pobox/
zoopy - 20 Aug 2004 18:19 GMT
> I have a problem getting Eclipse to work: The default setup complains
> about having found no application id. And trying to set one doesn't work.
[quoted text clipped - 5 lines]
> or eclipse.application=org.eclipse.platform
> I get results such as:
[snip]
> And with the default config.ini I get:
[snip]
> Any help will be appreciated.
>
> Thanks,
> Hans van Mourik

I assume that you're trying to start the Eclipse IDE (editing/compiling Java etc), and not an
application using Eclipse as its framework.

Is it a freshly installed Eclipse you're having problems with?

Did you download & install the SDK version (eclipse-SDK-3.0-win32.zip) or something else? It is
possible to download another set of zips to get a working IDE, but the SDK is the easiest.
Downloading and installing one of the RCP versions ("Rich Client Platform" IIRC) will not give you a
working IDE.

I've included my config.ini below for you to compare. In my plugins directory there are 98
subdirectories (org.eclipse.* [95], org.junit_3.8.1, org.apache.* [2]).

Another thing you could try is to delete your C:\eclipse\configuration directory (or rather rename
it) and start Eclipse again.

If you have used an earlier version of Eclipse (e.g. 2.1), you should delete (rename) the existing
Eclipse workspace directory of that version (older workspaces are generally incompatible with newer
versions, especially with a major version change 2 -> 3).

Signature

Regards,
Z.

---------------

# Eclipse runtime configuration file
# This file contains a number of key/value pairs that are merged into the
# System properties on system startup.  The values control the way the
# runtime is structured and runs.

# Note:  Only platform:/base/ and file: URLs are supported.  In general the
# URLs given may include a version number (e.g., .../location_1.2.3).
# If a version is not specified, the system binds
# to the location which matches exactly or to the versioned location with the
# latest version number.  If a version number is given then only exact matches
# are considered.

# The URL for the runtime entry point.  The default value is
# platform:/base/plugins/org.eclipse.osgi
#osgi.framework = platform:/base/plugins/org.eclipse.osgi

# The classpath for the framework found at the osgi.framework location.  This
# comma-separated list contains either URLs or simple element names.  Simple
# names are assumed to be relative to the framework's install directory.
# Typically this value need not be set as it is initialized by the framework itself.
# Version match searching is not done for URLs listed here.
#osgi.frameworkClassPath =

# The comma-separated list of locations to search for the splash screen file (splash.bmp).
# For each list element a subdirectory structure based on the pattern nl/<locale> is searched.
# The system binds to the first matching file.  There is no default value.
osgi.splashPath = platform:/base/plugins/org.eclipse.platform

# The location of the splash screen file.  If this value is set at system startup it is used
# in favour of the osgi.splashPath searching outlined above.  If the value is not set
# the searching is done and this key is bound to the result of the search.
#osgi.splashLocation =

# The comma-separated list of bundles which are automatically installed and optionally started
# once the system is up and running.  Each entry if of the form
#     <URL | simple bundle location>[@ [<startlevel>] [":start"]]
# If the startlevel is omitted then the framework will use the default start level for the bundle.
# If the "start" tag is added then the bundle will be marked as started after being installed.
# Simple bundle locations are interepreted as relative to the framework's parent directory.
# The startlevel indicates the OSGi start level at which the bundle should run.
# If this value is not set, the system computes an appropriate default.
#osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start

# The product to run.  A given Eclipse configuration may contain many products.
# The product identified will supply the branding (window icons, title bar text) etc
# as well as define the default application to run.
eclipse.product=org.eclipse.platform.ide

# The application to run.  The value specified here is the id of the application extension
# the runtime will find, instantiate and execute once the system is up.  Note that typically
# the identified eclipse.product defines the default application to run.
#eclipse.application=

# The build identifier
eclipse.buildId=I200406251208

# End of file marker - must be here
eof=eof

---------------

zoopy - 20 Aug 2004 18:33 GMT
> In my plugins
> directory there are 98 subdirectories (org.eclipse.* [95],
> org.junit_3.8.1, org.apache.* [2]).
I forgot that I've installed the CDT plugins (14). So in a freshly installed SDK version there
should be about 80/84 subdirectories in 'plugins'.

Signature

Regards,
Z.

Hans van Mourik - 21 Aug 2004 12:38 GMT
>> I have a problem getting Eclipse to work: The default setup complains
>> about having found no application id. And trying to set one doesn't work.

> I assume that you're trying to start the Eclipse IDE (editing/compiling
> Java etc), and not an application using Eclipse as its framework.
>
> Is it a freshly installed Eclipse you're having problems with?

Yes

> Did you download & install the SDK version (eclipse-SDK-3.0-win32.zip)

Yes, that's the one I used.

> or something else? [...]
> I've included my config.ini below for you to compare. In my plugins
> directory there are 98 subdirectories (org.eclipse.* [95],
> org.junit_3.8.1, org.apache.* [2]).

My config.ini was almost identical, but Eclipse kept complaining.

> Another thing you could try is to delete your C:\eclipse\configuration
> directory (or rather rename it) and start Eclipse again.

Thanks - that really worked! Now it's working fine.

Hans


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.