Hi Zeeshan, My apologies if this sounds a bit blunt, but from the exchanges it seems to me that you are not only a beginner in revTalk, but not very experienced with Java either when it comes to socket programming and starting daemon processes and its classpath challenges.
At RunRevLive'09 I gave a presentation on how revTalk and Java can interact in various ways. You can download the slides and example code from the downloads section of my website: <http://www.quartam.com/downloads.html> Come to think of it, that's probably how you assembled those first bits of code: setting the defaultFolder to the path of the stack is a trick I used there to keep everything together in a single folder and reduce scripting complexity. Not something a newbie will find on day one ;-) For this to work, the compiled Server.class file must be in the same directory as the rev stack; if it's sitting somewhere in your NetBeans project directory, it is not going to find it. Merely repeating that something doesn't work, is not going to resolve your situation: take a step back, think through the different concepts and learn more about processes and socket programming. Jan Schenkel ===== Quartam Reports & PDF Library for Revolution <http://www.quartam.com> ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) --- On Fri, 3/19/10, zeeshan aamir <shani.run...@gmail.com> wrote: > Hay Mark Schonewille, > > i tested with the changes in command emailed by Mark > Wieder ( put > shell("Server 6800") into tResult) > > in server button in Rev like this > *For Server Communication Button in Rev* > > > on mouseUp > local tDefaultFolder, tResult > -- > put the defaultFolder into > tDefaultFolder > set the defaultFolder to StackPath() > -- > put shell("java Server") into tResult > -- > set the defaultFolder to tDefaultFolder > answer tResult > end mouseUp > > * > * > > > this command will work but it gives this error. > > java.lang. > NoClassDefFoundError: Server (wrong name: Server/Server) > at > java.lang.ClassLoader.defineClass1(Native Method) > at > java.lang.ClassLoader.defineClassCond(Unknown Source) > 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 > sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at > java.lang.ClassLoader.loadClass(Unknown Source) > Could not find the main class: Server. Program will > exit.Exception in > thread "main" > > but i try it on same as in same folder where .Java and > .Class file placed. > > Regards, > ZEESHAN > _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution