The Artima Developer Community
Sponsored Link

Java Answers Forum
JView.exe

7 replies on 1 page. Most recent reply: Mar 10, 2003 12:06 PM by oron

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 7 replies on 1 page
oron

Posts: 4
Nickname: juan
Registered: Mar, 2003

JView.exe Posted: Mar 9, 2003 5:45 AM
Reply to this message Reply
Advertisement
im using visual j++
every time i want to run a program i get the error message:
"JView.exe failed to launch"
and i can only run the program from the prompt command.
can any one help me solve this problem ?
thank's,
juan


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: JView.exe Posted: Mar 9, 2003 7:03 AM
Reply to this message Reply
I am amazed that anyone is still using anything java from Microsoft.

My suggestion would be to switch to a different IDE.
There are many to choose from:
Netbeans IDE www.netbeans.org
JBuilder
Eclipse

I use a text editor mainly. I have become quite attached to SciTE from http://www.scintilla.org

Its highly configurable. Has a good code highlighter and will compile and run your java source code without a dos command shell.

There many many text editors to choose from.

oron

Posts: 4
Nickname: juan
Registered: Mar, 2003

Re: JView.exe Posted: Mar 9, 2003 8:39 AM
Reply to this message Reply
thank's for your replay.
unfortunately i'm obligated to use j++ otherwise i would have use somthing else.
so thank's anyway.
im still looking for help on my problem.
juan

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: JView.exe Posted: Mar 9, 2003 8:49 AM
Reply to this message Reply
Microsoft does even support that anymore. I would talk to those who are obligating you to use it and tell them they are forcing you to use an obsolete program that by your own example doesn't work very well.

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: JView.exe Posted: Mar 9, 2003 8:58 AM
Reply to this message Reply
JView is the microsoft version of the program that runs the microsoft compiled class files.
When I run the command jview form a dos prompt I get the following:

C:\j2sdk1.4.0\projects>jview
Microsoft (R) Command-line Loader for Java Version 5.00.3805
Copyright (C) Microsoft Corp 1996-2000. All rights reserved.

Usage: JView [options] <classname> [arguments]

Options:
/? displays usage text
/cp <classpath> set class path
/cp:p <path> prepend path to class path
/cp:a <path> append path to class path
/n <namespace> namespace in which to run
/p pauses before terminating if an error occurs
/v verify all classes
/d:<name>=<value> define system property
/a execute AppletViewer
/vst print verbose stack traces (requires debug classes)
/prof[:options] enable profiling (/prof:? for help)

Classname:
.CLASS file to be executed.

Arguments:
command-line arguments to be passed on to the class file

*********
If you can't get that from a dos prompt, then either its not on your machine, or the JView.exe is not in your PATH setting.

Find out where it is and fix your path setting and that will probably fix your problem.

Notice JView was only good through 2000 in the little copyright statement.

If jview.exe is not on your machine, you have to get it from microsoft if its still available somewhere.

Apparently I still have an old version which came with this PC.

Try a google search on jview.exe and see what comes up.

There may be some posts out there on the web which can help you with this problem.

oron

Posts: 4
Nickname: juan
Registered: Mar, 2003

Re: JView.exe Posted: Mar 9, 2003 9:56 AM
Reply to this message Reply
thank's again !
running my programs from the Dos promt command is ok, i have no problem there. the error message come when i want to run my program from the j++ (clicking "start" like in visual basic and visual c++) it was working befor. but now it does not. some of my friends have the same problem but nine of them found a solution. i agree with you that j++ is not ideal for java programers but for now it's not my decision.
again thank you for your help and patience.
juan.

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: JView.exe Posted: Mar 9, 2003 12:25 PM
Reply to this message Reply
Sometimes problems like that clear up by reinstalling the software.

From the dos prompt you can look at your environment variable settings with the command
set

set /? gives the help output

set with no parameters displays all the environment variables.

look for the lines that start with:
CLASSPATH=
or PATH=
you may have to make your dos shell taller or pipe the output to a text file with a command such as:
set > set.txt

CLASS and CLASSPATH are strings with entries separated by the semicolon ; character

. means current working directory.

if that little period . is not in your classpath, add it.

Depending on what windows version you are running, you you may have to change these with either an autoexec.bat file entry or on Windows NT or Windows 2000 under SYSYTEM your Control Panel (on the ADVANCED tab).

I don't know much about the microsoft java virtual machine, just enough to compile a couple of simple programs and run
them from the dos prompt.

Sometimes pecking around under preferences, options, customize, ... etc may fix it. The most obvious answer may be found in the help section of the program.

Best wishes,

Charles

oron

Posts: 4
Nickname: juan
Registered: Mar, 2003

Re: JView.exe Posted: Mar 10, 2003 12:06 PM
Reply to this message Reply
ok !!!!
thanks a lot for all your help
i realy hope not to work with j++ for long.
thank's again,
juan

Flat View: This topic has 7 replies on 1 page
Topic: Heck of a problem, please help Previous Topic   Next Topic Topic: pls help by giving some clues

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use