Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

RSENSE_HOME setting #3

Open
kwerle opened this issue Jul 19, 2010 · 5 comments
Open

RSENSE_HOME setting #3

kwerle opened this issue Jul 19, 2010 · 5 comments

Comments

@kwerle
Copy link

kwerle commented Jul 19, 2010

Let us set RSENSE_HOME in the bundle configuration.

@kwerle
Copy link
Author

kwerle commented Jul 19, 2010

When trying to use rsense:
Exception in thread "main" java.lang.NoClassDefFoundError: org/cx4a/rsense/Main
Caused by: java.lang.ClassNotFoundException: org.cx4a.rsense.Main

Probably because the .jar file is not loaded?

@Samsinite
Copy link
Owner

See your issue above...

@fancyoung
Copy link

I have the same problem on linux.

$ bin/rsense server
start: /tmp/rsense-socket (27271)
Exception in thread "main" java.lang.NoClassDefFoundError: org/cx4a/rsense/Main
Caused by: java.lang.ClassNotFoundException: org.cx4a.rsense.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.cx4a.rsense.Main. Program will exit.
singal: CHLD
stop

@Samsinite
Copy link
Owner

The rsense client server wrapper isn't used... The plugin instead runs through the java interface: "java -cp '.:#{RSense.path}/lib/rsense.jar:#{RSense.path}/lib/antlr-runtime-3.2.jar:#{RSense.path}/lib/jruby.jar' org.cx4a.rsense.Main script '--home=#{RSense.path}' --no-prompt --end-mark=END --config=#{File.dirname(FILE)}/../.rsense --progress=1" did you try saving a .rb test file then doing something like "test". then press ctrl+/?

@fancyoung
Copy link

I have solve my problem.
the edition I download doesn't have rsense.jar in lib folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants