Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JMF and VCafe4?

Posted on 2000-04-01
7
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 900 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

636 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