thank you for your reply! that must be the only
combination i didnt try...

it works ok now :)

btw, sorry for being off-topic, you're right, java
docs
talk about it


--- [EMAIL PROTECTED] wrote:
> You should not put .\ in front of your class name.
> 
> just execute
> 
> java -cp c:\maxdb\runtime\jar\sapdbc.jar;.
> HelloSapDB
> 
> This shoud do the trick. Don't forget to read tools
> docs for Java plataform (in Docs
> package), and in special the classpath chapter of
> The Java Tutorial (in real, your question
> is Java related, not Sap related, and this two
> sources of information can clarify several
> things about the classpath, JDBC drivers and class
> loading issues of Java plataform). There
> are complete instructions about the use of -cp
> (related to classpath) and other options.
> 
> Best regards,
> 
> Edson Richter
> 
> 
> >
> > Hello again, and thank you for your replies.
> >
> > Alexander, i did as you said but still the same:
> >
> > C:\>java -cp c:\maxdb\runtime\jar\sapdbc.jar;.
> > .\HelloSapDB
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError: /\HelloSapDB
> >
> >
> > Norbert, yes it's all in c:\ . i did it tha way to
> > keep it as simple as possible:
> >
> > C:\>dir *.java
> >  Volume in drive C is KKK
> >  Volume Serial Number is B123-0BCD
> >
> >  Directory of C:\
> >
> > 17/03/2004  06:06p                 942
> HelloSapDB.java
> >                1 File(s)            942 bytes
> >                0 Dir(s)   3.464.965.120 bytes free
> >
> >
> >
> >
> > C:\>dir *.class
> >  Volume in drive C is KKK
> >  Volume Serial Number is B123-0BCD
> >
> >  Directory of C:\
> >
> > 17/03/2004  06:11p               1.498
> > HelloSapDB.class
> >                1 File(s)          1.498 bytes
> >                0 Dir(s)   3.464.965.120 bytes free
> >
> >
> >
> >
> >
> > C:\>dir \maxdb\runtime\jar
> >  Volume in drive C is KKK
> >  Volume Serial Number is B123-0BCD
> >
> >  Directory of C:\maxdb\runtime\jar
> >
> > 17/03/2004  03:26p      <DIR>          .
> > 17/03/2004  03:26p      <DIR>          ..
> > 16/03/2004  06:58p             401.371 sapdbc.jar
> >                1 File(s)        401.371 bytes
> >                2 Dir(s)   3.464.965.120 bytes free
> >
> >
> >
> >
> >
> > C:\>javac -verbose HelloSapDB.java
> > [parsing started HelloSapDB.java]
> > [parsing completed 150ms]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/Object.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/String.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/ClassNotFoundException.class)
> > ]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/sql/SQLException.class)]
> > [checking HelloSapDB]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/Throwable.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/Exception.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/System.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/io/PrintStream.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/io/OutputStream.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/Class.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/sql/Connection.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/sql/DriverManager.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/util/Properties.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/sql/Statement.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/sql/ResultSet.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/Error.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/RuntimeException.class)]
> > [loading
> >
>
C:\j2sdk1.4.2_03\jre\lib\rt.jar(java/lang/StringBuffer.class)]
> > [wrote HelloSapDB.class]
> > [total 1342ms]
> >
> >
> >
> >
> > C:\>java -cp c:\maxdb\runtime\jar\sapdbc.jar;.
> > .\HelloSapDB
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError: /\HelloSapDB
> >
> > :(
> >
> > Any ideas?
> >
> > thank you again for your fast responses
> >
> > Regards,
> >
> > Matt Rogers
> >
> > --- "Schroeder, Alexander"
> > <[EMAIL PROTECTED]> wrote:
> >> Hello Matt,
> >>
> >> > hello, i'm new to maxdb and java, and try to
> get
> >> the
> >> > example from the manual running but with no
> luck.
> >> >
> >> > the prog is taken from the documentation and
> >> compiles
> >> > ok, but when running the prog i get the
> following
> >> > error:
> >> >
> >> > C:\>java -cp c:\maxdb\runtime\jar\sapdbc.jar
> >> > .\HelloSapDB.class
> >> > Exception in thread "main"
> >> > java.lang.NoClassDefFoundError:
> /\HelloSapDB/class
> >>
> >> Although the file is HelloSapDB.class, the
> correct
> >> command line is:
> >>
> >> java -cp c:\maxdb\runtime\jar\sapdbc.jar;.
> >> HelloSapDB
> >>
> >> (No .class ending, and I put the current path
> ('.')
> >> in the class
> >> path, too).
> >>
> >> Cheers
> >>
> >> Alexander Schr�der
> >> SAP DB, SAP Labs Berlin
> >>
> >> --
> >> MaxDB Discussion Mailing List
> >> For list archives: http://lists.mysql.com/maxdb
> >> To unsubscribe:
> >>
> >
>
http://lists.mysql.com/[EMAIL PROTECTED]
> >>
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - More reliable, more storage, less
> spam
> > http://mail.yahoo.com
> >
> > --
> > MaxDB Discussion Mailing List
> > For list archives: http://lists.mysql.com/maxdb
> > To unsubscribe:   
>
http://lists.mysql.com/[EMAIL PROTECTED]
> >
> >
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

-- 
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to