New To Command Prompt

Hi.
I've been using NetBeans for as long as I can remember, so I've never really need to do the whole javac filename.java in the command prompt. Well, now I'm trying to do an applet, and nothing I do works.
1.) I compiled WelcomeApplet.java using NetBeans, so I have a WelcomeApplet.class. I put that into an HTML file (WelcomeApplet.html), but it doesn't work: The applet doesn't run.
2.) I try to use appletviewer like my book suggests, but it doesn't work either: I sent the PATH variable to the right folder, but it still doesn't work.
Help?

what "doesn't work"?
What exact errors are you getting?
Without more information you're leaving us all guessing, but most likely you are having classpath problems (which amount to 90%+ of all problems people have when running anything Java).

Similar Messages

  • Adter adding new ztv10 W 300 ZTE Router command prompt changed

    I just installed my new ZTE Router (ethernet+wifi) model ztv10 w300 and got it working even though I seem to be having a few ip address conflicts. The question I have now is why do I see local0026bb05005b:~ jasper$ when I open a command prompt now instead of Jaspers-MacBook-Pro.local:~ jasper$ as before? Under sharing I still have Jaspers-MacBook-Pro.local, but no longer in the terminal. Why? Is this going to cause issues? How do I revert?

    The hostname can be changed dynamically by routers and other network devices through DHCP requests, which can have the hostname keep changing every time your IP address and other DHCP information is renewed. If this is the case, you may be able to set the router to never provide hostname information, or you can set the computer to never accept a hostname change. To do this, you will need to add a line to the computer's hostconfig file using the following procedure:
    Open the Terminal
    Enter the following command:
    sudo pico /etc/hostconfig
    Authenticate, scroll to the bottom of the file, and add the following line:
    HOSTNAME=MacBook
    (Change "MacBook" to your desired hostname--no spaces)
    Save the file and quit by pressing control-X, confirming the save with the "Y" key followed by "enter".
    After this has been added to the file, the computer's hostname should not change even when you renew your DHCP lease.
    Cheers

  • Satellite L - Can I add new accounts via command prompt?

    Is there a way that I can add new accounts to the machine via the command prompt on the "recovery" screen?
    (When you boot up into recovery mode and select command prompt)
    I tried the normal commands "net user username /add" but the accounts are not added to the machine.
    Is there another command that can be used?
    Thanks.

    Hi
    Im not sure if it will work using the Recovery console. In my opinion it's not possible.
    As far as I know you can add the user and the password using the CMD but this would function only when Windows OS has been loaded.
    In such case you can use this command to add user account: +net user username /add+
    If you want to add a password to the new user account then you have to use this path: +net user username password /add+

  • How i can open a new command prompt from one java from

    hi
    can any one help me that how i can open a command prompt by using the java program file .
    regards,
    ukbasak

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.lang.String)
    and several overloads.
    Also
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html

  • Command prompt issue from VBscript

    So I have this script that works perfectly for parsing out a COM number and then sending data to said COM port via the command line (things like 'ipconfig > //./COM15'). The issue is that it only works when I use the /K modifier which tells the command
    windows to stay open.  I don't want them to stay open, but whenever I remove the /K, it doesn't work. Nothing gets copied to the COM port. I suspect the cause of this is the command prompt closing before things like systeminfo can finish running. So is
    there a way to have the command prompt window stay open for a short amount of time and then close?
    'Part 1: FindCOM port
    fileName = "C:\rtlstuff\COM.txt"
    Set regex = New RegExp
    regex.Pattern = "COM(\d+)"
    regex.IgnoreCase = True
    regex.Global = True
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set file = fso.OpenTextFile(fileName)
    text = file.ReadAll()
    file.Close
    Dim ComPort
    Set matches = regex.Execute(text)
    For Each m In matches
    ComPort = m.SubMatches(0)
    Next
    'Part 2: Set file dictionary
    set oDic = CreateObject("Scripting.Dictionary")
    oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
    oDic.Add 1, "ipconfig > //./COM"
    oDic.Add 2, "systeminfo > //./COM"
    v = 3
    'Part 3: Set COM Variables
    Set oShell = WScript.CreateObject ("WScript.Shell")
    MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
    oShell.run "cmd.exe /C" & MODE
    'Part 4: Data transmission
    Dim Command
    x=0
    do while x < v
    Command = oDic.Item(x) & Comport
    msgbox Command
    oShell.run "cmd.exe " & Command
    x=x+1
    wscript.sleep 10000
    loop

    Can you help me with syntax? I'm still not hugely familiar with VB and I'm not sure how to set this up. This current iteration does not work.
    'Part 1: FindCOM port
    fileName = "C:\rtlstuff\COM.txt"
    Set regex = New RegExp
    regex.Pattern = "COM(\d+)"
    regex.IgnoreCase = True
    regex.Global = True
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set file = fso.OpenTextFile(fileName)
    text = file.ReadAll()
    file.Close
    Dim ComPort
    Set matches = regex.Execute(text)
    For Each m In matches
    ComPort = m.SubMatches(0)
    Next
    'Part 2: Set file dictionary
    set oDic = CreateObject("Scripting.Dictionary")
    oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
    oDic.Add 1, "ipconfig > //./COM"
    oDic.Add 2, "systeminfo > //./COM"
    v = 3
    'Part 3: Set COM Variables\par
    Set oShell = WScript.CreateObject ("WScript.Shell")
    MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
    oShell.run "cmd.exe /C" & MODE
    'Part 4: Data transmission
    Dim Command
    i = True
    x=0
    do while x < v
    Command = oDic.Item(x) & Comport
    msgbox Command
    oShell.run "cmd.exe " & Command , ,True
    x=x+1
    wscript.sleep 10000
    loop

  • How to print pdf file in SQL Server Reporting services report using command prompt?

    Is there a way to automatically print a SQL Server Reporting services report on command prompt? For eg: We can save a pdf file using rs.exe utility. I want to print a pdf using rs.exe utility. Is it possible? I don't want to install any 3rd party software.

    Thanks Simon for replying to my question.
    In oracle form, there is oracle command to print the report from command prompt with the help of rwrun.exe
    e.g: rwrun.exe   REPORT="D:\Test\REP_25\MLA.REP" DESNAME="testprinter" DESTYPE="PRINTER" P_FORMNAME="MLA.FMX" P_SPRACHE="E" P_SPRACHE_NR2="1" P_WHERE_BEDINGUNG="order by land_nr" USERID="test/test.world" PSV_NAME="PSV_DEMO" PSV_JOB_ID="PS$9583" RECURSIVE_LOAD="NO"
    BATCH="YES" NONBLOCKSQL="NO" ARRAYSIZE="1" PARAMFORM="NO" ERRFILE="c:\temp\psv16.tmp"<
    and to save the report we just need to change DESNAME="c:\temp\OC_100001349.pdf" DESTYPE="FILE" in above command instead of DESNAME="testprinter" DESTYPE="PRINTER".
    DESNAME and DESTYPE are the input parameters of the respective report.
    In SSRS, we can run the file from the command prompt and save it.
    rs -i "C:\Users\pujarswa\Documents\reports\new\LoadReport.rss" -s ww2004760:80/ReportServer_MSSQL -v fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"
    -v reportPath="/TipsReport/LoadListTabular" -t -v format="PDF" -v LandNr=4 -u ap\swati -p test@# -e Exec2005
    But we cannot use same command for printing as you said we need to create another script for printing files.
    I have gone through the links but I dont want to use Adobe Acrobat Reader exe for printing because client it may not have Adobe Acrobat Reader on their machine.
    Also I want to pass a input parameter as type="Printer" to my report which will print directly for me and same I can acheive in command prompt passing type="Printer" fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

  • Encountering a RunTime error when I try running from command prompt

    When I try to load my class from the command prompt I get the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: MiniTriangle
    Since this seems like a pretty basic error, I'm hoping there's a black and white solution to it. Unfortunatly I don't have the slightest idea what that might be.
    Any help would be appreciated, thanks in advance!!!

    I'm pretty new to this myself but have encountered this error before. I've found it happens when you try to run the programme and the class name isn't the same as the file name. So if you named the text file when you wrote the code MiniTriangle when you compile it you will get a file called MiniTriangle.class which is what you are trying to run. However if you inadvertently misspelled the class definition in the code and entered say
    class MiniTringle {
    you would get the error you are experiencing when you try to run MiniTriangle.class
    Hope this helps

  • Running a java application in command prompt

    hi, I'm new to this forum.
    I would like to know what exactly needs to be specified to run a java application in a normal DOS command prompt.
    I know it is something like:
    javaw -classpath .\class GUI.applicationGUI
    where applicationGUI is the main class, right? What else do I need to do, since I have some other non-GUI classes that I need, inside the class folder ?
    Thanks for your time.

    You need to import those classes. And you need to make packages.
    In classes 1, 2 and 3 put:
    package class;
    In class 4 put;
    package class.GUI;
    Then you need to make the connection:
    In classes 1,2 and 3 put:
    import class.GUI.*;
    In class 4 put:
    import class.*;
    Compile each directory separately while in the respective directory. javac *.java
    Then go back to the directory above the directory "class" and run
    java class/GUI/name_of_file_containing_main_method

  • Vista bootmgr compressed VISTA - need command prompt!

    I am at wit's end and even though my 8 year old bought his HP G60 with his own money, I am about to hurl it out the window as I wasn't "consulted" and would not have condoned this unfamiliar to me Vista O/S.
    All I wanted to do was reset the computer/system to factory defaults.  He is gaming now a few years later with nothing important and seemed the quickest way to clean up the PC.  I create recovery disks, a NICE LITTLE PROCESS that took 3 entire days.  NO JOKE.  I had to place every few hours COLD PACKS under and on it because this thing from day one runs hotter then heck. 
    So voila, it's done.  And reboots.  And I hope there is some other bored GEEK reading this because I can't find ONE POST on the entire Al Gore Internet that gets me to a command prompt without using install disks.  This HP shipped with no install o/s disks.  I created the recovery as a safety net, and it's starting over AGAIN and personally, I don't have 3 more days and hot pack maintenance in me before I just buy a new one.  PLEASE HELP.  It seems simple enough to get to a command prompt and uncompress something I never even intended to compress nor did in any keystroke of my imagination.
    He is losing faith in his mother who he believes created MPLS....  got a network problem, I'm your gal.  Word won't load, call IT.  Windows XP has an issue, UNIX, learning Win7... but this Vista?  grrrrrr.  Where's the wine for my WHINE?

    I guess I only said it in the subject. boot gets BOOMGR is compressed. Press Control Alt Del to restart. Tried the normal ways to boot and get into some start up, but seems I need a command prompt to uncompress...

  • Strange command prompt on iPad2 screen

    My iPad 2 has taken a battering in 2 years, but despite the cracked screen, the headphone jack that no longer works and the wifi that has to be ontop of the router to pick up the signal, it still works.  Today, one of the children dropped it on the floor (it has a hard candy case on it), I picked it up and put it back on charge (it was at 1% or so).  10 minutes, 20 minutes later it still has the battery with the red line on it, and won't do anything.  I tried turning it off, I tried the off button and home button at the same time.  Nothing.  if I pull out the cable, it registers that I need to charge the iPad and when I plug it back in, it looks like it is charging, but clearly isn't (with the ipad charger that came with it, that charges son's iPad just fine).  Then, all of a sudden the apple is on the screen and there are 4 lines of command prompt type writing in white on the screen.
    Anyone any idea at all what is going on? 
    It is regularly plugged into the TV so we can watch movies on the big screen, I wonder if the charging port has been damaged?  I had the same problem with my iPod last year, stopped being able to sync it and then not even charge it.  The TV cables came from apple.
    I've investigated getting the other problems fixed, by when I add up all the costs I'm looking at it being cheaper to buy a new one altogether!

    elizabeth160 wrote:
    Today, one of the children dropped it on the floor (it has a hard candy case on it), I picked it up and put it back on charge (it was at 1% or so).  10 minutes, 20 minutes later it still has the battery with the red line on it, and won't do anything.  I tried turning it off, I tried the off button and home button at the same time.  Nothing.  if I pull out the cable, it registers that I need to charge the iPad and when I plug it back in, it looks like it is charging, but clearly isn't (with the ipad charger that came with it, that charges son's iPad just fine).  Then, all of a sudden the apple is on the screen and there are 4 lines of command prompt type writing in white on the screen.
    Anyone any idea at all what is going on? 
    Are you familiar with the expresssion ..."the straw that broke the camel's back"? I think that the last drop of the iPad may be that straw that broke the iPad's back. I really think that it is time for a new iPad or possibly a refurb if you dont want to spend the money on a new one.

  • How to use addKeyListener in a program running using command prompt

    Does anyone have any idea how to add the addKeyListener to a program running using command prompt.
    Let me explain how the program run.
    The program is start and accept call from other program. But from time to time, I need to issue some command by pressing the keyboard, let say, ESC is closed the program, F1 is showing the stated. F2.... (This is all need to run in the command prompt windows)
    My problem is this program does not have any gui interface, so how can it be added?
    i do it this way
    public void key(){          
    addKeyListener(this);
    But it have compile error.
    mainServerImpl.java:87: cannot resolve symbol
    symbol : method addKeyListener (mainServerImpl)
    location: class mainServerImpl
    addKeyListener(this);
    I did implement KeyListener. But just don't know how to solve this error.
    can anyone tell me how to solve it or point me a source that can help.
    Thank in advance!
    Regards,
    Tai Tan

    Write your own Thread, to do this:
    public class KeyThread extends Thread {
       public void run {
          while(true) {
             int i = System.in.read();
             if(i == 123) {
                break; // to stop the thread
    // in your main:
    Thread keyThread = new KeyThread();
    keyThread.start(); // calls run() of the thread

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • When I open firefox (note: I got firefox version 28.0 and Karspersky security 2014) I get a black screen, looking like a command prompt window, in firefox.

    Hi,
    When I open firefox (note: I got firefox version 28.0 and Karspersky security 2014) I get a black screen covering the whole firefox window and it looks more lika a big command prompt window, in firefox. What is it?
    Regards
    Jean

    Huh, that's a new one...
    Can you try Firefox in [[Safe Mode | Safe Mode]] to see if the problem goes away. I'm thinking it's an extension.
    *Run ''firefox.exe -safe-mode'' in the search bar on the Start Menu. (Make sure Firefox is closed)
    Have you added any new extensions recently around the time this started happening? Your system details shows the following:
    *Adobe Acrobat - Create PDF 1.2 ([email protected])
    *Anti-Banner 14.0.0.4917 ([email protected])
    *Dangerous Websites Blocker 14.0.0.4917 ([email protected])
    *Kaspersky URL Advisor 14.0.0.4917 ([email protected])
    *Troubleshooter 1.1a ([email protected]) '''This is default so this isn't the problem.'''
    * Virtual Keyboard 14.0.0.4917 ([email protected])

  • Can't create database from command prompt

    I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
    sqlplus /nolog
    connect / as internal (when I issue this I get message TNS no listener)
    CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
    Can anyone help me how to create new database from command prompt?
    Thanx

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

Maybe you are looking for

  • Which is better for labview - 2000 or XP?

    I am upgrading an image acquisition system to LabVIEW 7 and was wondering what are the relative benefits, if any, of 2000 and XP (both Pro). I primarily use two 1422 boards to grab simultaneous images from two cameras at a rate of up to 60 Hz (320x25

  • PB G4 65W poweradapter broken, how to open it?

    Hi all, The cable running from the poweradapter/charger (model no A1021, 65Watts) to my PB G4/800 has frayed where it leaves the poweradapter/charger cabinet, thus rendering the adapter/charger unserviceable. I dislike throwing it into the bin, not f

  • XE: create DB-User in APEX and Monitor Storage???

    Hello there, i am wondering, where some of the features described in the XE 2Day DBA guide are? For Example, i cannot find the usage monitor or storage tab. I loged in: WS: system | internal | MyWorkspace user: system | admin | Jana PW: ***** | *****

  • No approver was found for Standard Purchase Order #

    I created an Employee for that employee i assigned a Buyer and Document type i gave a Direct approver ,But it is still showing No approver for this PO. could some one please give me the details how to approve a purchase order using Direct Method. And

  • How do i test a record containing status E0008 and not containing status I0002

    hello all, how do i test a record containing status E0008 and not containing status I0002  for a given WBS Element.... the data(like pspnr, posid and objnr from table PRPS are avialable in internal table it_prps)....