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

Similar Messages

  • I get a runtime error when I try to open itunes, any help?

    I get a runtime error when I try to open itunes, any help?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Installing my updated CS4 on a new I Mac: "legacy Java SE 6 runtime" error when i try to open psd

    Bought the original Creative Suite package 1n 2004, installed on my new apple G5.  Upgraded in 2009 to CS4 and sometime installed on a 2nd computer.  I'm sure I registered each product.  I don't have the original disk's, but I have the serial number. I'm trying to install CS on my new I Mac.  It fails authorization in the download.  I went ahead and downloaded the 30 day trail like suggested.  I get the "legacy Java SE 6 runtime" error when i try to open psd.  After my first attempt failed and I read the help lessons on deactivation, I believe I have deactivated from the G5, but I'm still getting the same code when trying to open psd.

    Download and install: Java for OS X 2014-001 
    Reboot your Mac.
    Let me know how it goes.
    Gene

  • Helpme I have error when I try connect from struts  to web service

    helpme I have error when I try connect from struts to web service using basic authentication . the error message is
    [SOAP Exception: fault code= SOAP-ENV Protocol; msg=Unsupported response content type "text/html" must be "text/xml"; ] Response was <html><body> 401 Unauthorized </body></html>
    I'm not using ldap for authentication only xml (jazx-data.xml) ... I already create user with jazn.jar for that user , and I dont know why it still error like that ..
    Please helpme I don't have anytime more to find the mistake , ??
    I'm using Jdeveloper 9i , and oc4j 9.0.4 Server (Not embedded with Jdev)
    But when I use with sample java client it success .....
    then I try with Struts the response is unsupported response content type text/html must be text/xml response was 401 Unauthorized

    1.The reason why this error occurs is, we are getting non SOAP response when the program is expecting a SOAP response. Did you set the proxy server correctly? Try to handle the exception and see the content type of the response in your program.
    2. While creating the client stub u must check an option for authentication for webservice .should solve ur problem.
    thanks
    sirisha

  • Runtime error when i try to execute this program

    I get a runtime error when i run this file using appletviewer. Please help me in getting out of this problem.
    The runtime errror is:
    C:\prashanth>appletviewer HelloMedia.java
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
    1)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:142)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:108)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:373)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
    at sun.applet.AppletPanel.run(AppletPanel.java:293)
    at java.lang.Thread.run(Thread.java:484)
    The code is :
    <applet code=HelloMedia.class width=500 height=400>
    <param name=FILE value="globe.avi">
    </applet>
    import java.applet.*;
    import java.awt.*;
    import java.net.*;
    import javax.media.*;
    public class HelloMedia extends Applet implements ControllerListener
    Player player;
    public void init()
    setLayout(new BorderLayout());
    String mediaFile = getParameter("FILE");
    try
    URL mediaURL = new URL(getDocumentBase(), mediaFile);
    player = Manager.createPlayer(mediaURL);
    catch(Exception e)
    System.err.println("Exception : " + e);
    player.addControllerListener(this);
    public synchronized void controllerUpdate(ControllerEvent event)
    if(event instanceof RealizeCompleteEvent)
    Component compVisual = player.getVisualComponent();
    Component compControl = player.getControlPanelComponent();
    if(compVisual != null)
    add("Center", compVisual);
    if(compControl != null)
    add("South", compControl);
    validate();
    public void start()
    player.start();
    public void stop()
    player.stop();
    player.deallocate();
    public void destroy()
    player.close();

    My classpath has the following value
    .;.;.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\Program Files\CosmoSoftware\CosmoPlayer\npcosmop211.zip;%systemroot%\java\classes;.;
    Please help me out.
    Prashanth

  • HT1926 Hi, got an update notification to go to 11.1.4 and then an R6304 runtime error when I try to start it. I downloaded Itunes again, and it will not complete intallation.... help please

    Good Day,
    Got an automatic upgrade notification to Itunes 11.1.4  Downloaded OK, but then got an R6304 Runtime error when it completed.
    I tried starting from the screen shortcut and got the same message. I tried downloading from scratch from the Apple site, and got
    the same errors.
    Any help would be appreciated.
    Thanks,

    Follow the instructions of tt2 in: https://discussions.apple.com/thread/5822086

  • RunInstaller fails while running from command prompt

    Hi,
    The runInstaller when run fails from command prompt:
    Starting Installation...
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /vol2/newtmp/OraInstall2009-05-17_11-02-45PM. Please wait ...Success!
    Done!
    [oracle@saudas oracle]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
    Copyright (C) 1999, 2005, Oracle. All rights reserved.
    Unexpected Signal : 11 occurred at PC=0xF7D617CE
    Function=(null)
    Library=/vol2/newtmp/OraInstall2009-05-17_11-02-45PM/jre/1.4.2/lib/i386/client/libjvm.so
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    I have made a temporary directory logged as root user:
    Then login as root:
    $mkdir /vol2/newtmp
    $chown oracle:oinstall /vol2/newtmp
    $chmod 777 /vol2/newtmp
    Then login as oracle:
    $export TMP=/vol2/newtmp
    $export TEMPDIR=/vol2/newtmp
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    I am using Oracle 10g Server Release 2 64 bitThat's a good start.
    The OS is:Red Hat Linux 64 bit.Which version ?
    Did you set DISPLAY env variable ? Did you set the kernel to the required value ?
    Check again all the prerequisites.
    Nicolas.

  • SignTool.exe verify /pa returns exit code 1 from the code but works fine while running from command prompt

    Hi,
    I am using SignTool.exe from a new Process() to verify a codesigned assembly and it returns the exit code 1 whereas it returns exit code 0 while i run the same from Visual Studio Command prompt. Please let me know your thoughts...
    Here is my code snippet from VS2012 ultimate on Win7 PC.
    p = new Process();
                p.StartInfo.FileName = "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\SignTool.exe";
                string args = @"verify";
                p.StartInfo.Arguments =  args + " "+ "/pa " + "/v "+ name;
                p.Start();
                p.WaitForExit();
                pexitcode = p.ExitCode;
    //name = "C:\\Users\\v-maparn\\Documents\\Visual Studio 2012\\Projects\\CodesignVerification\\CodesignVerification\\bin\\Release\\Microsoft.IT.Core.dll"
    Thanks,
    Mani

    Hi Amy,
    Thanks for your reply. I am receiving the exit code 1 by the Process even though the SignTool is able to successfully verify the assembly. I ran the below command from command prompt and received no errors or warnings. I assume the exit code should be 0.
    I have also verified that this assembly has digital signature embedded as you can see from the output.
    output:
    C:\Windows\system32>signtool.exe verify /pa /v "C:\Users\v-maparn\Documents\Visu
    al Studio 2012\Projects\CodesignVerification\CodesignVerification\bin\Release\Mi
    crosoft.IT.Security.UI.SystemSecurityManagement.SSMUIWebHost.dll"
    Verifying: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\CodesignVerif
    ication\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.SystemSecurity
    Management.SSMUIWebHost.dll
    Signature Index: 0 (Primary Signature)
    Hash of file (sha1): 1B58113B218260837A6B850561538A804B034F2A
    Signing Certificate Chain:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Code Signing PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Mon Aug 31 14:29:32 2020
            SHA1 hash: 3CAF9BA2DB5570CAF76942FF99101B993888E257
                Issued to: Microsoft Corporation
                Issued by: Microsoft Code Signing PCA
                Expires:   Thu Apr 24 14:33:39 2014
                SHA1 hash: 108E2BA23632620C427C570B6D9DB51AC31387FE
    The signature is timestamped: Mon Dec 30 02:58:12 2013
    Timestamp Verified by:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Time-Stamp PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Sat Apr 03 05:03:09 2021
            SHA1 hash: 375FCB825C3DC3752A02E34EB70993B4997191EF
                Issued to: Microsoft Time-Stamp Service
                Issued by: Microsoft Time-Stamp PCA
                Expires:   Wed Feb 11 14:11:31 2015
                SHA1 hash: D967AB4CF991F11DA6E318C880F1AF1A9C8D2C7C
    Successfully verified: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\C
    odesignVerification\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.Sy
    stemSecurityManagement.SSMUIWebHost.dll
    Number of files successfully Verified: 1
    Number of warnings: 0
    Number of errors: 0
    C:\Windows\system32>
    Thanks,
    Mani

  • I get a Runtime error when i try to search within the iTunes store

    Please help! When in the iTunes store, I get a runtime error every time I try to use the search feature. I get a dialog box stating that Windows is searching for a solution, but then iTunes shuts down completely.

    I have the same error, but I think we will get no solution for this problem.
    You've get no answer here and the Apple support also doesn't send an answer how to solve the problem.
    BTW I have also Windows 7 and the newest version of iTunes 64-bit.
    Greetings Mike

  • I receive a Runtime Error when trying to go from Organizer to Editor. It reads:  Microsoft Visual C   Runtime Error....Runtime Error....Program c:/ (x....

    When trying to go from Organizer to Editor, I receive a Ryntime Error.  It reads: Microsoft Visual C++ Runtime Error.    Runrime Error  Program c:\(x....

    I kept getting the same error message too! Thank goodness I'm not alone in this!

  • Runtime.exec() I need to run a command prompt command from java.

    the code i have that doesn't seem to work is:
    String driveloc = System.getProperty("user.dir").substring( 0, 1 );
            String path = jTextFieldPath.getText();
            String path2 = jTextFieldPath.getText().substring(0, jTextFieldPath.getText().length()-3) + "lst";
            String[] cmd = { "cmd.exe", "/" + driveloc, "ASMtools\\AS11 " + path + " -L >" + path2};
            txt_mf.append( cmd[3] );
            try {
                Process np = Runtime.getRuntime().exec( cmd );
            catch( java.io.IOException ioe) {
                //error
            }jTextFieldPath.getText() contains the path of the file saved by my program.
    the line of code i am trying to run is:
    AS11 FILE1 -L FILE2this line compiles the asm file and converts it to a lst creating an s19 file in the process. AS11 is an exe that aids the command prompt much like javac.
    If you could help me figure this out it would be great.
    Thanks in advance,
    -Juke

    String driveloc =
    System.getProperty("user.dir").substring( 0, 1 );
    String[] cmd = { "cmd.exe", "/" + driveloc,
      "ASMtools\\AS11 " + path + " -L >" + path2};Are you sure you want to invoke cmd.exe with the switch /c or /d or whatever depending on System.getProperty("user.dir") ?
    Starts a new instance of the Windows 2000 command interpreter
    CMD [A | /U] [Q] [D] [E:ON | /E:OFF] [F:ON | /F:OFF] [V:ON | /V:OFF]
        [[S] [C | /K] string]
    /C      Carries out the command specified by string and then terminates
    /K      Carries out the command specified by string but remains
    /S      Modifies the treatment of string after /C or /K (see below)
    /Q      Turns echo off
    /D      Disable execution of AutoRun commands from registry (see below)
    /A      Causes the output of internal commands to a pipe or file to be ANSI
    /U      Causes the output of internal commands to a pipe or file to be
            Unicode
    /T:fg   Sets the foreground/background colors (see COLOR /? for more info)
    /E:ON   Enable command extensions (see below)
    /E:OFF  Disable command extensions (see below)
    /F:ON   Enable file and directory name completion characters (see below)
    /F:OFF  Disable file and directory name completion characters (see below)
    /V:ON   Enable delayed environment variable expansion using c as the
            delimiter. For example, /V:ON would allow !var! to expand the
            variable var at execution time.  The var syntax expands variables
            at input time, which is quite a different thing when inside of a FOR
            loop.
    /V:OFF  Disable delayed environment expansion.

  • Scanner works in JCreator but doesn't when run from Command Prompt?

    Can someone tell me why I can run this program in JCreator with no problems, but when I run it with the Command prompt it throws a java.util.InputMismatchException if I input anything?
    import java.util.Scanner;
    public class tester {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in).useDelimiter("\n");
            System.out.println("Type either 1 or 2");
            int temp = in.nextInt();
            System.out.println("");
            if (temp == 1)
                 System.out.println("you typed 1");
            if (temp == 2)
                 System.out.println("you typed 2");
            else
                 System.out.println("you typed something else!");
    }

    Try this code it is running correctly on command prompt
    import java.util.Scanner;
    public class tester {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            System.out.println("Type either 1 or 2");
            int temp = in.nextInt();
            System.out.println("");
            if (temp == 1)
                 System.out.println("you typed 1");
            if (temp == 2)
                 System.out.println("you typed 2");
            else
                 System.out.println("you typed something else!");
    }

  • Got an error while import script run in command prompt in R12

    hi '
    i am running the below script in command prompt in R12, but it will give an error
    that error name:
    'import' is not recognized as internal or external command,
    operable program or batch file.
    import C:\JDeveloper10g\jdevhome\jdev\myprojects\flsm\oracle\apps\po\per\webui\FlsmCreationPG.xml -rootdir C:\JDeveloper10g\jdevhome\jdev\myprojects -username XXFLS -password xxfls -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cph-oadb-tst22.dk.flsmidth.net)(PORT=1543))(CONNECT_DATA=(SID=TST22)))"
    could you please help me on this.
    Regards,
    Muthu

    Muthu,
    The import file directory is not in the path,
    So run the script with full path,
    <JDEV_DIR>\jdevbin\jdev\bin\import
    Eg.
    <JDEV_DIR>\jdevbin\jdev\bin\import <JDEV_DIR>\jdevbin\jdev\myclasses\xxt\oracle\apps\pon\registration\webui\XXTSupplierRegistrationPG.xml -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<DB_HOST_NAME>)(PORT=<DB_PORT>))(CONNECT_DATA=(SID=<DB_SID>)))" -rootDir <JDEV_DIR>\jdevbin\jdev\myclasses\ -rootPackage /
    For scripts check this URL,
    http://apps2fusion.com/at/61-kv/331-oa-framework-scripts
    Thanks,
    With regards,
    Kali
    OSSI.

  • Error while executing ODI scenario from command prompt

    Hi all,
    I am trying to execute a scenario of a package( that I have created in designer) in OS command prompt in Windows in the following way-
    C:\ODIHOME\oracledi\bin>Startscen DIM_TECHNOLOGY_PACKAGE 001 Global LEVEL5
    However I am getting the following message:-
    OracleDI: Starting scenario DIM_TECHNOLOGY_PACKAGE 001 in context Global ...
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    Please tell me what can be the possible reason?
    Thanks in advance
    PB

    Hi PB ,
    Use the following syntax
    C:\ODIHOME\oracledi\bin>startscen DIM_TECHNOLOGY_PACKAGE 001 <CONTEXT_CODE> "-v=5"
    Also make sure that the repository connection details are all correct before running scenario via startscen script
    Thanks,
    Sutirtha
    Edited by: Sutirtha Roy on May 14, 2010 12:18 PM

  • Jar run from command prompt?

    Hi !
    How do I run my Jar from the command prompt window?
    my jar's name is " javaproject 7"
    Thanks!

    Java application launcher documentation:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

Maybe you are looking for

  • How do i create an imap account in my iphone 4s (iOs 7.1.1)?

    crazy but to try and setup my PC contacts stored in windows live mail I deleted the comcast imap email acct in my iphone to recreate it as an outlook or exchange acct (as i was directed to do in another apple support string). Well, got an error messa

  • After synching iPhone, most of my apps no longer work.   how do I fix this

    I've had my 3GS for several months, and purchased several dozen apps over that time. I had never synched the phone to my mac until today, though (I didn't have a new enough OS or iTunes). Now the phone synchs and backs up (it says) but I got a messag

  • How to select same font and apply auto kerning?

    How to select all text frames with same font (for example 'NewCenturySchlbk-Roman') and apply auto kerning? Thanks.

  • Parameter sweep from labview

    Hi, Can anyone show me an example for setting and executing a parameter sweep in Labview? (with Multisim Automation API). Is it actually possible to do something like that? Thanks, Ussr123.

  • Unable to access samba share.

    I'm setting up a ubuntu file server with samba shares and security = user. These shares are able to be accessed and work correctly for both linux and windows clients. When I attempt to connect to the shares in OSX I get the usual username/password di