Solved

JMF and VCafe4?

Posted on 2000-04-01
7
294 Views
Last Modified: 2013-11-23
Just downloaded and installed JMF2.0
under WinNT4sp5 and VCafe4.0 Expert
Edition. the Diagnostics applet says
everythings is installed correctly, but
when I try to run JMStudio or
JMFRegistry, I get this error:

ERROR: Unable to locate system class:
java/lang/String

I edited jmstudio.bat so JMFHOME points
to my JMF2.0 directory, but that
doesn't help. The whole path is shown
below, but it looks like String lives
in VisualCafe\Java\Lib\classes.zip.

I was able to build and run the
DataSource demo.

E:\dev\Java\JMF2.0\bin>SET CLASSPATH=e:\dev\java\JMF2.0lib\jmf.jar;e:\dev\java\JMF2.0lib\sound.jar;.;
e:\dev\java\JMF2.0\lib\jmf.jar;e:\dev\java\JMF2.0\lib\sound.jar;.;
e:\dev\visualcafe\Java\Lib;
e:\dev\visualcafe\Java\Lib\SYMCLASS.ZIP;
e:\dev\visualcafe\Java\Lib\CLASSES.ZIP;
e:\dev\visualcafe\Java\Lib\COLLECTIONS.ZIP;
e:\dev\visualcafe\Java\Lib\ICEBROWSERBEAN.JAR;
e:\dev\visualcafe\Java\Lib\JSDK.JAR;
e:\dev\visualcafe\Java\Lib\SYMTOOLS.JAR;
e:\dev\visualcafe\JFC\SWINGALL.JAR;
e:\dev\visualcafe\Bin\Components\SFC.JAR;
e:\dev\visualcafe\Bin\Components\SYMBEANS.JAR;
e:\dev\visualcafe\Java\Lib\DBAW.ZIP;
e:\dev\visualcafe\Bin\Components\DBAW_AWT.JAR;
e:\dev\visualcafe\Bin\Components\Databind.JAR;
e:\dev\visualcafe\Java\Lib\Olite35.jar;;.;
e:\dev\visualcafe\JAVA\LIB;
e:\dev\visualcafe\JAVA\LIB\SYMCLASS.ZIP;
e:\dev\visualcafe\JAVA\LIB\CLASSES.ZIP;
e:\dev\visualcafe\JFC\SWINGALL.JAR;
e:\dev\visualcafe\BIN\COMPONENTS\SFC.JAR;
e:\dev\visualcafe\BIN\COMPONENTS\SYMBEANS.JAR;
e:\dev\visualcafe\JAVA\LIB\Collections.zip;
e:\dev\visualcafe\JAVA\LIB\icebrowserbean.jar;
e:\dev\visualcafe\JAVA\LIB\jsdk.jar;
e:\dev\visualcafe\JAVA\LIB\SYMTOOLS.JAR
0
Comment
Question by:barrett
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Expert Comment

by:MadMike
ID: 2677003
Awwww... okay. I think this one is pretty obvious (but I might be wrong). I'm no expert for NT, but if I create a envrionment variable that is as huge as yours in Win95 the content gets truncated after the 1024th character.

You got much useless chunk in your environement variable. Most jar and zip-files are mentioned twice, get rid of the dublicates and you should be easly able to get under 1024 characters.

If this causing you trouble, I agree to reduce the question on 50 points before you accept this comment as an answer.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2677520
what about adding classes.zip to the classpath  ? :)
0
 

Author Comment

by:barrett
ID: 2677892
OK, I cleaned up my CLASSPATH, but I still get the same error. AFAIK, classes.zip is present in CLASSPATH, which looks like:

..;e:\dev\java\JMF2.0\lib\jmf.jar;
e:\dev\java\JMF2.0\lib\sound.jar;
e:\dev\visualcafe\Java\Lib;
e:\dev\visualcafe\Java\Lib\SYMCLASS.ZIP;
e:\dev\visualcafe\Java\Lib\CLASSES.ZIP;
e:\dev\visualcafe\Java\Lib\COLLECTIONS.ZIP;
e:\dev\visualcafe\Java\Lib\ICEBROWSERBEAN.JAR;
e:\dev\visualcafe\Java\Lib\JSDK.JAR;
e:\dev\visualcafe\Java\Lib\SYMTOOLS.JAR;
e:\dev\visualcafe\Java\Lib\DBAW.ZIP;
e:\dev\visualcafe\JFC\SWINGALL.JAR;
e:\dev\visualcafe\Bin\Components\SFC.JAR;
e:\dev\visualcafe\Bin\Components\SYMBEANS.JAR;
e:\dev\visualcafe\Bin\Components\DBAW_AWT.JAR;
e:\dev\visualcafe\Bin\Components\Databind.JAR;
e:\dev\visualcafe\Java\Lib\Olite35.jar

The command line for running JMStudio is:

E:\dev\Java\JMF2.0\bin>jview.exe -cp:p %CLASSPATH% JMStudio
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Expert Comment

by:MadMike
ID: 2678217
Jview is the MS Virtual-Machine. I don't know to much about it. So what follows is *pure* speculation:
Maybe jview it can't read certain the compressed jar-formats (I remeber having read something about it...). But I might be wrong, since Symantec ships it's own libraries in jar's but maybe they are uncompressed and thus jview can't read them.

You can try to repackage the jmf.jar in a zip-file or try to run the whole thing with a Sun's VM. But as I said, I might be wrong and all efforts could be in vain.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2679075
1. can you start some other app that uses java.lang.String (with the same classpath settings)
2. remove classes.zip (and all the other .zip files that contain systemclasses) - this looks like a version conflict ...
0
 
LVL 2

Accepted Solution

by:
MadMike earned 300 total points
ID: 2681393
Yeah heyhey_ is right. MS use their own System classes (embrace and extend :/). But instead to remove the classes.zip you can call:

jview /cp:a %CLASSPATH% JMStudio

instead of:

jview /cp:p %CLASSPATH% JMStudio

The first will 'A'ppend the classes to the classpath and the second will 'P'repend the classes to the classpath. Appending will allow the system classes to get a higher priority against other zip-files if they define the same classes. This should have the same effect as removing classes.zip from the CLASSPATH altogether.

See here for a complete explaination of the jview's syntax:
http://msdn.microsoft.com/library/devprods/vs6/visualj/vjcore/vjhowjviewcommand-lineoptions.htm
0
 

Author Comment

by:barrett
ID: 2682280
Unfortunately, this doesn't work, but it's good to know. What does work is to omit the CLASSPATH entirely:

jview.exe JMStudio

Now JMStudio and JMFRegistry both run just fine.

Thanks for the hints, guys.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTTPSessionBindingListernter not configured in deployment descriptor 2 53
oracle 11g 23 84
java stored proc example 9 32
mysql jsp example issue 32 37
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question