3

I am using Win7 64 bit and when i try to start websphere 8 inside my eclipse it says

Get the following error when  start the server :
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
    at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:646)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:612)
Could not find the main class: Files.  Program will exit.

But when i go to first steps console and run the installation verification, the server starts up and also gets started in eclipse.

Please help.

user1374266
  • 323
  • 1
  • 4
  • 19

2 Answers2

0

The root cause of this for me was a recently added environmental variable for JAVA_HOME and corresponding entry of%JAVA_HOME%\bin that was added to my Windows PATH. This all seemed to work perfectly well from anything inside a cmd.exe prompt/window, but did not work properly for the WAS scripting started in IDEs. The offending Program Files reference was in these variables for me. Removing these definitions, and restarting the IDE (important!) seemed to fix my issues.

cwash
  • 4,185
  • 5
  • 43
  • 53
-1

You can't run WAS in basic Eclipse. You have to use Rational Application Developer.

Albert T. Wong
  • 1,535
  • 1
  • 13
  • 21
  • i don't think starting and stopping a WAS should be a problem with eclipse. – user1374266 Nov 19 '12 at 05:45
  • I am getting the same error with RAD 8 now, The only difference is Instead of FILES this time it says RESOURCE. – user1374266 Feb 15 '13 at 11:49
  • Ticket to IBM Software Support. They'll ask you do to a mustgather log collection to see how the software was installed. There is something funky because I can get my RAD 8 up in less than 30 minutes. – Albert T. Wong Feb 26 '13 at 00:17
  • I'm having the same problem in IntelliJ all of a sudden - this answer provides zero insight. – cwash Apr 08 '16 at 14:18
  • Although this answer is not true, I have up-voted because of sh*tty IBM compatibility issues. Works OK in RAD but headache in Eclipse. – ramazan polat Jan 19 '17 at 13:43