Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321804 - Jetty cannot be started in Eclipse if its installation path has a space in it
Summary: Jetty cannot be started in Eclipse if its installation path has a space in it
Status: RESOLVED INVALID
Alias: None
Product: Jetty
Classification: RT
Component: other (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 19:37 EDT by Ben Arnold CLA
Modified: 2010-08-06 12:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Arnold CLA 2010-08-04 19:37:14 EDT
Build Identifier: 20100617-1415

The stack trace is...

java.lang.NoClassDefFoundError: Files/jetty-6/1/25
Caused by: java.lang.ClassNotFoundException: Files.jetty-6.1.25
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main" 


Reproducible: Always

Steps to Reproduce:
1. Unzip Jetty to C:\Program Files\jetty-6.1.25
2. In Eclipse's "Servers" view create a new Jetty 6 server, pointing to that Jetty directory.
3. Right-click on the server and choose "Start"

Eclipse pops up a dialogue box that says "Could not find the main class: Files/jetty-6.1.25. Program will exit"
Comment 1 Greg Wilkins CLA 2010-08-05 07:35:44 EDT
How are you trying to start jetty?
Comment 2 Michael Gorovoy CLA 2010-08-06 12:00:36 EDT
What version of the Eclipse IDE are you using? 

There are no Jetty classes in the exception stack trace that you have provided. Therefore the CNFE has happened while the Eclipse IDE was attempting to load Jetty's bootstrap classes. As a result this is likely to be an issue with the way Eclipse IDE launches servers on Windows platform. An obvious work-around is to use an installation path for Jetty that does not contain spaces.

-Michael