I tried it on Vista 32 & Java 1.6.0_17-b04 and it works without a problem.
Actually on all other computers in the office there is no problem - I am the only one using Windows 7

I did try with full path and it didn't work as well. Here's the result:

Directory: C:\nginx\solr


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----         12/2/2009  10:40 AM            etc
d----         12/2/2009  10:40 AM            lib
d----         12/2/2009  12:02 PM            logs
d----         12/4/2009   9:25 AM            multicore
d----         12/2/2009  12:02 PM            solr
d----         12/2/2009  10:40 AM            webapps
-a---        10/26/2009   4:27 PM      16411 start.jar


PS C:\nginx\solr> java -Dsolr.solr.home=c:/nginx/solr/multicore -jar start.jar Exception in thread "main" java.lang.NoClassDefFoundError: /solr/home=c:/nginx/solr/multicore Caused by: java.lang.ClassNotFoundException: .solr.home=c:.nginx.solr.multicore
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: .solr.home=c:/nginx/solr/multicore. Program will exit.
PS C:\nginx\solr>

The jetty folder that you asked for was actually a config where I tried to move files around to check the dependencies - however this is certainly not the problem because that same config works smoothly on Vista. I also did try to remove everything and reinstall from scratch (solr & java) but still the same problem.
I removed the example/work folder but still the same.


Lance Norskog wrote:
I just tested this on trunk and it works. Crazy. I'm on Vista 64 &
Java 1.6.0_14-b08. I have had security configuration problems and
disabled some of it. You might try removing the unpacked solr from
example/work/. Have you tried the full path? c:/nginx/...

I run this from trunk/example. What directory is solr/jetty?

On Wed, Dec 2, 2009 at 1:17 AM, Vladan Popovic <vladanpopo...@be-o.com> wrote:
Hi,

I installed solr 1.4 on Windows7 64bit with Java 1.6.0_17-b04 64bit and when
I run the command:
java -Dsolr.solr.home=multicore -jar start.jar
I get the following error message:
PS C:\nginx\solr\jetty> java
-Dsolr.solr.home=c:\nginx\solr\solr\multicore -jar start.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
/solr/home=c:\nginx\solr\solr\multicore
Caused by: java.lang.ClassNotFoundException:
.solr.home=c:\nginx\solr\solr\multicore
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class:
.solr.home=c:\nginx\solr\solr\multicore. Program will exit.

This is what I did to try to solve the problem but failed:
1. I googled quite a lot but didn't see anyone with a similar problem.
2. I tried running java in compatibility modes Vista & XP and running it
as administrator but none of it worked.
3. I installed Java 32 bit but it didn't solve the problem
4. I tested on Windows Vista 32 bit and Mac OSX snow tiger and it works
without a problem
5. I tried to analyze the java log files on Windows 7 x64 but there was
nothing there ...

Basically whatever home other than the default (solr/) doesn't work.
Has anyone else encountered this problem? and would anyone have a clue
how to trouble shoot


Any help would be appreciated.

Best regards

Vladan






Reply via email to