Developer and Windows Vista

Hi,

Can’t start developer on windows Vista

Here’s the traceback:

~
C:\Programas\servoy>servoy_developer
Exception in thread "main" java.lang.NoClassDefFoundError: com/ser
ication
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Sou
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Meth
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Sou
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Meth
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.servoy.j2db.startup.Bootstrap.main(Unknown Source)
        at Servoy.main(Unknown Source)

Servoy is the latest install and JRE is 1.6.0_01
The windows Firewall is off and I have no idea what to do next.

Best,
Miguel

That works for me. Unfortunately we cannot really see which class is missing because the text is cut off. Could you post the whole error?

Sorry Patrick,

Here’s the entire traceback:

Exception in thread "main" java.lang.NoClassDefFoundError: com/servoy/j2db/IApplication
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        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 java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        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 java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.servoy.j2db.startup.Bootstrap.main(Unknown Source)
        at Servoy.main(Unknown Source)

Txs,
Miguel

Vista has pretty strict rights. Maybe something cannot be accessed because of a lack of rights. Could you try the same when the Servoy directory is on the Desktop?

Nope. Copying the servoy folder to the desktop is not working.
I’m pretty sure there’s a way to do it but I really no nothing about Vista.

In case we find a solution we’ll be sure to post it here, though.

Miguel

Could you try to start the servoy_developer.bat instead of servoy_developer.jar and see how that goes?

Upps!

Sorry but I messed up :oops:
We had a first failed install and somehow that messed everything.
After deleting the entire servoy directory and reinstalling everything worked just perfect.
Like Servoy has made us used to ;-)

Txs for the time and help.
Miguel

I have “discovered” that as a regular Vista user you cannot install Servoy into the applications directory right, because the installer they use does not get the rights needed to create the .bat file there (I think it was this one). If on Vista, you should install Servoy on the desktop and then manually move the folder later to the applications directory.

I’m having a hard time installing Servoy 3.5.1 in Vista.
This goes only for installation to the application folder.
Developer works OK if installed to the Desktop.
I tried to move the Servoy folder from the Desktop to the Program
Files, rebooted Vista and started Developer (from the Jar-file),
but this gives a connection error:

Can’t connect to the repository server specified in the application preferences.
org.apache.commons.dbcp.DbcpExeption:
java.sql.SQLExeception: JZ006: Caught IOExeption:
java.net.ConnectExeption: Connection refused: connect

Any help will be appreciated.

Ron

Ron, have you checked both the servoy.properties and sybase_db/sybase.config files if anything (concerning filepaths) is hardcoded in there?

Thanks for the tip Marcel.
I scanned the files: no path’s found.
Te be honest I am running out of options.
This means there is no way I can get Servoy running from the app.folder.

Question: (apart from the fact that it should be possible to replace the folder) why did you install in your desktop folder?

And, now that I think of it, Vista is very strict in user rights. Could that be the issue?

Yep, that was it!
Thanks a lot for the suggestion.
First fiddled a bit with security/compatibility settings, but that did’nt work out.
Finally I switched UAC (User Account Control) OFF and that did the trick.

Regards,
Ron


Vista Home Premium ‘SP_0’
Servoy 3.5.1
Java 1.6.0

Nice!

Ron:
Finally I switched UAC (User Account Control) OFF and that did the trick.

I guess you just came to a sad realisation ;)