Open GoogleCodeExporter opened 9 years ago
This issue is resolved, it was the truncated path issue already reported. Have
additional errors, wondering what version of JDK is required?
Original comment by ljha...@gmail.com
on 19 Nov 2009 at 3:05
Hello,
I have almost the same problem:
What steps will reproduce the problem?
1. Run the bat file
What is the expected output? What do you see instead?
Exception in thread "main" java.lang.NoClassDefFoundError: de
What version of the product are you using? On what operating system?
Windows XP
Original comment by renan.gi...@gmail.com
on 19 Feb 2010 at 5:25
Original comment by henols
on 23 Mar 2010 at 10:28
I had this issue too, but there's a simple workaround... the issue is when you
have a
space in the global CLASSPATH, when it fills that into the java command you get
a
broken command.
The simple workaround is to edit your batch file just surround the %cPath% in
quotes,
like so:
java -classpath "%cPath%" com.googlecode.syncnotes2google.SyncNotes2Google
Original comment by matthewl...@gmail.com
on 6 Apr 2010 at 3:43
I have this same error, but encapsulating %cPath% in quotes didn't make any
difference. I continue to receive the same error.
Error:
c:\SyncNotestoGoogle>syncnotes2google.bat
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
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: Files. Program will exit.
Version of product:
syncnotes2google-0.0.5
OS:
Windows 7 Enterprise 64bit
Original comment by cyda...@gmail.com
on 23 Jul 2010 at 2:02
I also have the same error :
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
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: Files. Program will exit.
and same specs:
Version of product:
syncnotes2google-0.0.5
OS:
Windows 7 Enterprise 64bit
Original comment by tmg.wil...@gmail.com
on 10 Aug 2010 at 3:28
same problem here:
Exception in thread "main" java.lang.NoClassDefFoundError: com/googlecode/syncno
tes2google/SyncNotes2Google
Caused by: java.lang.ClassNotFoundException: com.googlecode.syncnotes2google.Syn
cNotes2Google
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: com.googlecode.syncnotes2google.SyncNotes2Google.
Program will exit.
Version of product:
0.0.5
OS:
Windows 7 Enterprise 32Bit
Original comment by subh...@gmail.com
on 15 Nov 2010 at 12:47
i have same issue and i changed all the (%cPath%) with ("%cPath%").. and look
like it's working so far... At least it has started...
Original comment by lart...@gmail.com
on 19 Apr 2011 at 3:21
I changed the first %CLASSPATH% with "%CLASSPATH%" and it runs.
You can verify if your final %cPath% variable has an space running: echo %cPath%
Original comment by xnada...@gmail.com
on 11 Jul 2011 at 6:24
I changed the first %CLASSPATH% with "%CLASSPATH%" and it runs.
Original comment by gastonmo...@gmail.com
on 20 Jul 2011 at 3:08
I can't get this to work. Tried the classpath changes above, but i am still
left with this error, and the calendar is not synched:
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\Java\jre1/6/0_22\lib\ext\QTJava/zip;/\syncnotes2google/jar;C:\Program
Caused by: java.lang.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.........[more lines like this]
Could not find the main class:
Filed\Java\jre1.6.0_22\lib\ext\QTJava.zip;.\syncnotes2google.jar;C:\Program
Any ideas?
Original comment by davidre...@gmail.com
on 7 Sep 2011 at 8:06
This is my bat. file contents:
@echo off
rem The path to the notes installation
set notes-path=C:\Program Files\lotus\notes
rem The relative path to the Notes.jar from the notes installation. ex.
Notes.jar or jvm/lib/ext/Notes.jar
set notes-jar=C:\Program Files\lotus\notes\jvm\lib\ext\Notes.jar
set cPath="%CLASSPATH%";.\syncnotes2google.jar
set cPath=%cPath%;"%notes-path%\%notes-jar%"
set cPath=%cPath%;.\lib\domingo-1.5.1.jar
set cPath=%cPath%;.\lib\gdata-calendar-2.0.jar
set cPath=%cPath%;.\lib\gdata-calendar-meta-2.0.jar
set cPath=%cPath%;.\lib\gdata-client-1.0.jar
set cPath=%cPath%;.\lib\gdata-client-meta-1.0.jar
set cPath=%cPath%;.\lib\gdata-core-1.0.jar
set cPath=%cPath%;.\lib\gdata-media-1.0.jar
set cPath=%cPath%;.\lib\google-collect-1.0-rc1.jar
set path=%path%;%notes-path%
java -classpath "%cPath%" com.googlecode.syncnotes2google.SyncNotes2Google
Original comment by davidre...@gmail.com
on 7 Sep 2011 at 8:09
To David.
notes-jar shall be relative change to: jvm\lib\ext\Notes.jar
set notes-jar=jvm\lib\ext\Notes.jar
Original comment by henols
on 7 Sep 2011 at 8:40
Hi Henols,
Thanks for your reply. Changed the notes-jar path, but still i get a
ClassNotFoundException:
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\Java\jre1/6/0_22\lib\ext\QTJava/zip;/\syncnotes2google/jar;C:\Program
Caused by: java.lang.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.........[more lines like this]
Could not find the main class:
Filed\Java\jre1.6.0_22\lib\ext\QTJava.zip;.\syncnotes2google.jar;C:\Program
It seems there is another incorrect classpath somewhere?
Thanks for taking your time to answer this.
David
Original comment by davidre...@gmail.com
on 7 Sep 2011 at 9:10
Change @echo off to @echo on and post every thing that comes out in the console.
Original comment by henols
on 7 Sep 2011 at 9:18
C:\syncnotes2google>rem The path to the notes installation
C:\syncnotes2google>set notes-path=C:\Program Files\lotus\notes
C:\syncnotes2google>rem The relative path to the Notes.jar from the notes
installation. ex. Notes.jar or jvm/lib/ext/Notes.jar
C:\syncnotes2google>set notes-jar=Notes.jar
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
ib\gdata-core-1.0.jar
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
ib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar
C:\syncnotes2google>set cPath=".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lotus\note
ib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar;.\lib\google-collect-1.0-rc1.jar
C:\syncnotes2google>set
path=C:\oracle\product\10.2.0\client_1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\S
ystem32\Wbem;C:\Program Files\Inte
tem\;C:\Program Files\Windows Imaging\;C:\Program
Files\1E\NomadBranch\;C:\Program Files\lotus\notes
C:\syncnotes2google>java -classpath "".;C:\Program
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip";.\syncnotes2google.jar;"C:\Program
Files\lot
jar;.\lib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar;.\lib\google-collect-1.0-
rc1.jar" com.googlecode.syncnotes2google.SyncNotes2Google
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\Java\jre1/6/0_22\lib\ext\QTJava/zip;/\syncnotes2google/jar;C:\Program
Caused by: java.lang.ClassNotFoundException:
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip;.\syncnotes2google.jar;C:\Program
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:
Files\Java\jre1.6.0_22\lib\ext\QTJava.zip;.\syncnotes2google.jar;C:\Program.
Program will exit.
Original comment by davidre...@gmail.com
on 7 Sep 2011 at 10:22
Remove quotes(") around %cPath% and it will take You a bit futher.
Original comment by henols
on 7 Sep 2011 at 11:04
that works. thanks a lot!
Original comment by davidre...@gmail.com
on 7 Sep 2011 at 11:31
Followed all of the above and have got to this point in the bat file:
SyncNotes2Google has started.
Start notes-to-google to google-to-notes synchronization.
de.bea.domingo.service.NotesServiceRuntimeException: lotus.domino.NotesException
at de.bea.domingo.service.NotesServiceFactory.throwWrappedException(Note
sServiceFactory.java:344)
at de.bea.domingo.service.NotesServiceFactory.<init>(NotesServiceFactory
.java:137)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at de.bea.domingo.DNotesFactoryFinder.newInstance(DNotesFactoryFinder.ja
va:116)
at de.bea.domingo.DNotesFactoryFinder.find(DNotesFactoryFinder.java:73)
at de.bea.domingo.DNotesFactory.newInstance(DNotesFactory.java:155)
at de.bea.domingo.DNotesFactory.getInstance(DNotesFactory.java:82)
at com.googlecode.syncnotes2google.Factory.getNotesSession(Factory.java:
44)
at com.googlecode.syncnotes2google.Factory.getMailDatabase(Factory.java:
99)
at com.googlecode.syncnotes2google.dao.NotesCalendarDAO.getFirstEntry(No
tesCalendarDAO.java:39)
at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.j
ava:14)
at com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Googl
e.java:23)
Caused by: java.lang.NoClassDefFoundError: lotus.domino.NotesException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at de.bea.domingo.service.NotesServiceFactory.<init>(NotesServiceFactory
.java:135)
... 11 more
Caused by: java.lang.ClassNotFoundException: lotus.domino.NotesException
at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
... 15 more
Press any key to continue . . .
Original comment by donchad2...@gmail.com
on 19 Sep 2011 at 1:40
Yes I am having the same issue. This is my bat file:
@echo on
rem The path to the notes installation
set notes-path=C:\notes
rem The relative path to the Notes.jar from the notes installation. ex.
Notes.jar or jvm/lib/ext/Notes.jar
set notes-jar=jvm\lib\ext\Notes.jar
set cPath=%CLASSPATH%;.\syncnotes2google.jar
set cPath=%cPath%;"%notes-path%\%notes-jar%"
set cPath=%cPath%;.\lib\domingo-1.5.1.jar
set cPath=%cPath%;.\lib\gdata-calendar-2.0.jar
set cPath=%cPath%;.\lib\gdata-calendar-meta-2.0.jar
set cPath=%cPath%;.\lib\gdata-client-1.0.jar
set cPath=%cPath%;.\lib\gdata-client-meta-1.0.jar
set cPath=%cPath%;.\lib\gdata-core-1.0.jar
set cPath=%cPath%;.\lib\gdata-media-1.0.jar
set cPath=%cPath%;.\lib\google-collect-1.0-rc1.jar
set path=%path%;%notes-path%
java -classpath %cPath% com.googlecode.syncnotes2google.SyncNotes2Google
and this is my results in a cmd window:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>C:\syncnotes2google\syncnotes2google.bat
C:\Documents and Settings\Administrator>rem The path to the notes installation
C:\Documents and Settings\Administrator>set notes-path=C:\notes
C:\Documents and Settings\Administrator>rem The relative path to the Notes.jar
from the notes instal
lation. ex. Notes.jar or jvm/lib/ext/Notes.jar
C:\Documents and Settings\Administrator>set notes-jar=jvm\lib\ext\Notes.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar"
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-
client-meta-1.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-
client-meta-1.0.jar;
.\lib\gdata-core-1.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-
client-meta-1.0.jar;
.\lib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar
C:\Documents and Settings\Administrator>set cPath=.;C:\Program
Files\Java\jre6\lib\ext\QTJava.zip;.\
syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.jar;.\
lib\gdata-calendar-2
.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-
client-meta-1.0.jar;
.\lib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar;.\lib\google-collect-1.0-rc1.
jar
C:\Documents and Settings\Administrator>set
path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\Program Files\IBM\Infoprint Select;C:\Notes;C:\Program
Files\XLView;C:\lotus\compnent;C:\Uti
lities;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace
Facility\;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Executive Softwar
e\Diskeeper\;C:\Program Files\QuickTime\QTSystem\;C:\notes
C:\Documents and Settings\Administrator>java -classpath .;C:\Program
Files\Java\jre6\lib\ext\QTJava.
zip;.\syncnotes2google.jar;"C:\notes\jvm\lib\ext\Notes.jar";.\lib\domingo-1.5.1.
jar;.\lib\gdata-cale
ndar-2.0.jar;.\lib\gdata-calendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\
gdata-client-meta-1.
0.jar;.\lib\gdata-core-1.0.jar;.\lib\gdata-media-1.0.jar;.\lib\google-collect-1.
0-rc1.jar com.google
code.syncnotes2google.SyncNotes2Google
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\Java\jre6\lib\ext\QTJava/zip;/\sync
notes2google/jar;C:\notes\jvm\lib\ext\Notes/jar;/\lib\domingo-1/5/1/jar;/\lib\gd
ata-calendar-2/0/jar
;/\lib\gdata-calendar-meta-2/0/jar;/\lib\gdata-client-1/0/jar;/\lib\gdata-client
-meta-1/0/jar;/\lib\
gdata-core-1/0/jar;/\lib\gdata-media-1/0/jar;/\lib\google-collect-1/0-rc1/jar
Caused by: java.lang.ClassNotFoundException:
Files\Java\jre6\lib\ext\QTJava.zip;.\syncnotes2google.j
ar;C:\notes\jvm\lib\ext\Notes.jar;.\lib\domingo-1.5.1.jar;.\lib\gdata-calendar-2
.0.jar;.\lib\gdata-c
alendar-meta-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-client-meta-1.0.jar;
.\lib\gdata-core-1.0
.jar;.\lib\gdata-media-1.0.jar;.\lib\google-collect-1.0-rc1.jar
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:
Files\Java\jre6\lib\ext\QTJava.zip;.\syncnotes2google.jar;C:\notes\jv
m\lib\ext\Notes.jar;.\lib\domingo-1.5.1.jar;.\lib\gdata-calendar-2.0.jar;.\lib\g
data-calendar-meta-2
.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-client-meta-1.0.jar;.\lib\gdata-co
re-1.0.jar;.\lib\gda
ta-media-1.0.jar;.\lib\google-collect-1.0-rc1.jar. Program will exit.
C:\Documents and Settings\Administrator>
Any help would be greatly appreciated and thank you.
Original comment by skimo...@gmail.com
on 9 Feb 2012 at 8:58
I got it figured out. I had the set notes-jar=jvm\lib\ext\Notes.jar path set
incorrectly and I also removed all the quotes around every thing except for the
last line of the classpath.
Original comment by skimo...@gmail.com
on 9 Feb 2012 at 9:06
The comment #10 worked for me but I don't get it because just a few days ago it
worked well. (Possibly caused by Java update but not sure - I am not an expert
of Java)
Anyway, the problem's solved now for me. Thanks!
Original comment by uoyy...@gmail.com
on 1 Jun 2012 at 3:19
Original issue reported on code.google.com by
ljha...@gmail.com
on 18 Nov 2009 at 3:29