You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Vladan Popovic <vl...@be-o.com> on 2009/12/02 10:17:36 UTC

Windows 7 / Java 64bit / solr 1.4 - solr.solr.home problem

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


Re: Windows 7 / Java 64bit / solr 1.4 - solr.solr.home problem

Posted by Chris Hostetter <ho...@fucit.org>.
: 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:

by the looks of it, your problem is happening long before solr (or even 
java) get access to the system property ... it appears that something 
About how Windows 7 works is causing the command line args to be 
split at the first "." character so it thinks hte rest of the sysproperty 
name is suppose to be a classname.

things get even more interesting when you use the full path, and you can 
see htat somewhere along the way, something is converting the "/" 
charaters in the path to "." characters.  (but that may just be an attempt 
by the JRE to work arround people who inadvertantly try to run a java class using 
apathc instead of a fully qualified classname).

My suggestion would be that you ignore Solr for a little while.  Start by 
double checking that the docs for your Windows 7 version of Java don't say 
anything about needing to use special escaping of system properties, then 
make a little dos batch file (or whatever they are called in Windows 7) 
that echo's back all of hte comman line arguments it gets, and test that 
out with some arguments that contain "." charaters in them and see what 
that tells you ... because everything you describe makes this sound like 
funky new shell behavior introduced in Windows 7.

: 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


-Hoss


Re: Windows 7 / Java 64bit / solr 1.4 - solr.solr.home problem

Posted by Vladan Popovic <vl...@be-o.com>.
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 <vl...@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
>>
>>
>>     
>
>
>
>   


Re: Windows 7 / Java 64bit / solr 1.4 - solr.solr.home problem

Posted by Lance Norskog <go...@gmail.com>.
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 <vl...@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
>
>



-- 
Lance Norskog
goksron@gmail.com