Netbeans IDE problem!!

when i comile a java file named DLSLecturer.java in netbeans
it has no problem
but when i run it in netbeans, the following error msgs appear while there was no problem running under dos prompt.
java.lang.NoSuchMethodError: Login.<init>(LLecturerMainInterface;)V
at DLSLecturer.main(DLSLecturer.java:24)
Exception in thread "main"
anybody knows why???
thanks!!!

From the very little information you have given I would assume that you have NOT mounted the correct root of your package system.
For example, if your package is
com.abc.def
based on say c:\work\src then you should mount c:\work\src and your DLSLecturer source file should be in directory c:\work\src\com\abc\def and should have package statement
package com.abc.def;

Similar Messages

  • Please Help.  NetBeans IDE Problem + rt.jar.  Trouble compiling MIDlets.

    Hi all. For the past few weeks I have undertaken learning Java for mobile devices. I am having a slight problem with NetBeans 5.5 which I would appreciate help in fixing.
    Currently installed on my system:-
    - Wireless Toolkit 2.5
    - NetBeans IDE 5.5 + Mobility Pack
    - j2sdk1.4.2_13
    - jdk1.6.0
    - jre1.6.0
    - javaee sdk5_02
    (So pretty much every Java application!)
    Now the problem. Basically, if I import the following at the beginning for my MIDlet...
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;... the java.sql has red line underneath saying "package does not exist". Now, what I found is that I need to import .jar files into the Library section. I managed to fix the javax.servlet package and some others, by importing the correct .jar files, but I found that to remove the red line for java.sql I need rt.jar.
    However, this is located under one of my jre folders and not the j2me / jdk folders I have. Even though it removes the red line, when I compile the project I keep receiving "PREVERIFY" errors and "CONSTANT POOL" errors.
    Yet, if I remove the rt.jar file, these go away, but it won't compile then because it says the package is missing (back to square one!).
    So, any ideas please??? I have spent days and days just adding random .jar files to try and fix the problem but to no avail. An example of current imported .jar files in NetBeans:-
    - rt.jar
    - midpapai.zip
    - jdbc.jar
    - servlet.jar
    - runtime12.jar
    - classes12.jar
    - ojdbc.jar
    Try not to be too technical, I've only just started out. Lol. Thanks in advance!!

    well... J2ME world is quite diffirent from usual Java. Actually you will not be able to use much of the staff, that you have imported, including java.io.* (it will be only available in CDC), java.servlet.*, java.servlet.http.*, java.sql.*
    So don't even try to find where are those packages are located....
    Try from simple tutorial like:
    http://developers.sun.com/techtopics/mobility/midp/articles/wtoolkit/
    Or from documentation on Netbeans.org:
    http://www.netbeans.org/kb/trails/mobility.html

  • Jsp netbeans ide problem

    at the time of execution, my netbeans ide(3.5) is not automatically starting the web browser. can anybody help me what settings i have to do to make the browser open automatically.thanks in advance.
    regards,
    srikanth

    It is
    tools
    options
    Server and External Tool Settings
    External Browser
    hope it helps

  • Problem with netbeans IDE

    hey! i am a learner of j2se 5.0 and am horrible at command line compiling. so i use netbeans IDE and well it has been doing excellently till now.
    recently i had a porblem with ImageIcons and i found the exact problem which i was having but with repect to applets , that is, the images were not displaying properly. i have managed to solve the problem as far as applets are concerned, but it is not so with applications.
    the thing is when i use the run function of the IDE, it displays all icons perfectly and its as if nothing is wrong.
    it creates a .jar file which when i separately click to execute by going to its folder, does so but does not display any images. In fact it executes and behaves in such a way that it's exactly as if i have not used icons in the program- it displays everything else. should i change some setting of the IDE? but if some setting is to be changed, y is it running normally when run from the IDE( F6 key).
    also when i used the command line (after some research to learn to use it) to extract all files from the .jar file, all the images were in it!!!as well as all the class files. so i can't even say that the IDE has not bundled up the images into the .jar file.
    could some1 please help??i need help with .jar files and not applets.

    first i deefined a method as shown in the Java tutorial
    ImageIcon icon =createImageIcon("lion.jpg","name");
    ( within the contructor of the class)
    then after completing the constructor for the class- (I am trying to display an ImageIcon on the background of a JFrame)
    i provided the following definition after the constructor and b4 the main method:
    protected static ImageIcon createImageIcon(String path,
    String description) {
    java.net.URL imgURL = LabelDemo.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL, description);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    this is what i did-and when run from the IDE-it is perfect, but the jar file ggenerated when executed displays every single thing-all swing components e.t.c EXCEPT the image
    the image is in the same folder as the source file- i checked because if not, an error is indicated- so that is not the problem here.
    this same exact code works perfectly with applets and they execute perfectly both from the IDE and also when executed separately.
    the same problem also iccurs when trying to display on labels and buttons.(only for JFrames not for JApplets)
    the thing is in the java tutorial the method is given for applets and so my applets worked -so is there somethin i'm missing for frames- as far as i know they r very similar as far as usage is concerned.

  • Problem with NetBeans IDE 5

    Hi All,
    I' m using NetBeans IDE 5 . Present my IDE works fine with J2SE. I would like to work with Servlets. There is an error while using servlet classes.
    Is this Installing problem ? or
    am i add servlet.jar for NetBeans IDE 5?
    Plase any one help me..................

    Right click on the library tab under your project in the projects window and click "add library". Servlet should be on the list.
    If not, check your installed modules and make sure servlet support is included.

  • Problem with Netbeans IDE 5.0: Building Gui

    Hello,
    I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
    Step 1) Create a myJPanel class (new JPanel Form)
    Step 2) make a simple operation on myJPanel such as adding a JTable.
    Step 3) Create a myJForm Class (new JFrame Form)
    Step 4) Adding a JPanel to myJFrame (default name jPanel1)
    Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
    this should set the jPanel1 (and all its contents and behaviours) created
    in step 4 equals to myJPanel();
    Step 6) run myJFrame;
    ........ and nothing happens. It is dispalyed just a gray JFrame.
    It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
    Hope you may help me,
    thx

    Unfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.

  • I have problems with WS in NetBeans IDE

    HI ALL!
    Duiring the compilation of web application including webServise i have a problem.
    Illustrated:
    wscompile-init:
    D:\projects\tests\test\nbproject\build-impl.xml:226: taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found
    BUILD FAILED (total time: 0 seconds)And the string of file build.xml
    <target name="wscompile-init" depends="init">
            <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile" classpath="${wscompile.classpath}"/>
            <taskdef name="wsclientuptodate" classname="org.netbeans.modules.websvc.core.ant.WsClientUpToDate" classpath="${wsclientuptodate.classpath}"/>
    I have the NetBeans IDE 4.1 and JDK 1.5.0_5.
    Help me, please!

    I have similar problem with NetBeans 5.0 beta when I tried to create a simple web service.
    From the Project View, under the hierarchy
    ---- Libraries
    right click and Add Libraries
    add the JAX-RPC 1.6 (which netbeans point to "c:\netbeans-5.0beta\ide6\modules\ext\jaxrpc16\*.jar"
    Press Ctrl+2 or Window|File to go to File View,
    open the file under the hierarchy
    --- nbproject
    +- project.properties
    originally it was
    javac.classpath=\
    ${libs.jaxrpc16.classpath}
    wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath}
    I changed it to
    wscompile.classpath=${wscompile.tools.classpath}:${j2ee.platform.wscompile.classpath}:${libs.jaxrpc16.classpath}

  • Problem in Connectivity to Derby Database in Netbeans IDE

    I am using the newest version of Netbeans IDE
    I already set the variable for JAVA_HOME and DERBY_HOME along with the path variables.
    I am trying to connect to Database in Network Mode
    using the following code
    try
    Class.forName("org.apache.derby.jdbc.ClientDriver");
    catch(ClassNotFoundException exception)
    exception.printStackTrace();
    but it is giving the runtime error that "Unable to load Driver"
    Please help me to get through this

    Try adding the following to your class:
    import org.apache.derby.jdbc.ClientDriver;
    If it produces an error, your driver *.jar file is not in the classpath.

  • Problem with NetBeans IDE 5.0

    sir i am using NetBeans IDE 5.0 and i am devoloping a swing appliaction.i had a jar file for an extra look and feel but i dont know where to place it .i even added jar file to java>> properties >> library
    but didnot work
    the devoloper has given look and feel jar and has given code for implemengting it

    hi
    Try this
    go to the project under which your java file is there and right click on the project and choose properties then under categories choose Libraries and after choosing that you will have to choose the Compile tab present on the right side and then click on Add JAR/Folder button and choose the jar file and then click ok.
    If you had done the above things and still not working then probably you would not have set the Main Class.To set the Main Class go to project under which your java file is there then right click and choose properties and then choose Run which is under categories and then after doing that on the right hand side you will find a number of things out of that Main Class will be present, in that relevant text box you should give the
    packagename.yourjavafilename(note: while giving the packagename.yourjavafilename in Main Class do not give .java extension for your javafilename ie. actually it is the class filename of your java file and it should also be noted that the java file name which you are giving in the Main Class should be your java file which contains the main method) then click on ok and now try to run the project then it should run properly.
    hope this helps you

  • Swing application with JavaHelp crashes outside Netbeans IDE.

    Hi guys I have developed a small swing application in Netbeans IDE. I used the following code inside the IDE for JH.
    public void createHelp()
           try {
                   URL hsURL = new URL("jar:file:eDictionaryHelp.jar!/eDictionaryHelp/eDictionary.hs");
                   hs = new HelpSet(null, hsURL);
           catch (Exception ee)
            // Say what the exception really is
            System.out.println( "HelpSet " + ee.getMessage());
            System.out.println("HelpSet "+ helpHS +" not found");
            JOptionPane.showMessageDialog(new JFrame(), ee.getMessage(), "Error", ERROR_MESSAGE);
            hb = hs.createHelpBroker();
       }When I run the program inside the IDE and and click on the corresponding MenuItem.. JavaHelp comes up as it should! No problems with that.
    But when I build the project and tried to run it from the .jar file in the PROJECT_HOME/dist/ the swing got displayed till this function was called. and then it simply crashed.
    Investigating further and commenting out one line at a time and compiling I found out that whenever the hs = new HelpSet(null, hsURL); is encountered, the app crashes (it doesnt throw any error).
    But as I said this is not the case when i run and compile inside the IDE. I only get this problem when running the app from outside the IDE.
    I have tried all kinds of combinations of the URL .. for eg ( I am aware of Bug 4149782)
    ClassLoader cl = this.getClass().getClassLoader();
    try {
                   URL hsURL = HelpSet.findHelpSet(cl, helpHS);
    .What can be the problem guys? Any suggestions?
    Thanks!

    Anyone has an answer on this?
    I am facing the same problem.. I am using NetBeans 5.5
    arijit_datta, do u have a solution for this problem already?
    Thanks,
    SK

  • How  to include the inner classes in a jar file in netbeans ide

    Dear java friends
    how to say to netbeans ide that it has to include the
    inner classes in the jar file.
    (i have one single applet class
    with two inner classes that show up
    in the build/classes file but not in the jar).
    The applet works in the viewer but not
    in the browser (I believe because the
    xxx$yyy etc should be in the jar)
    willemjav

    First, please stop posting the same question multiple times:
    Duplicate of http://forum.java.sun.com/thread.jspa?threadID=5269782&messageID=10127496#10127496
    with an answer.
    Second, If your problem is that you can't do this in NetBeans, you need to post to somewhere that provides NetBeans support - like the NetBeans website's mailing list. These forums do not support NetBeans (or any other IDE) - they are Java language forums.

  • Java 1.4.2 with NetBeans IDE 3.5 - Error Message, please help

    Hello, I have downloaded the "J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the install finished it said there was an error and to please refer to the log file.
    Here is what the log file says:
    "Installing J2SDK..."
    "Finished Installing J2SDK..."
    (Jul 1, 2003 7:53:14 AM), Setup.product.install, com.sun.installer.InstallJ2sdkAction, err, Error occured while installing [0] -> D:\Program Files\j2sdk_nb\_uninst\custom-install.bat "D:\Program Files\j2sdk_nb\install.log" "D:\Program Files\j2sdk_nb\j2sdk1.4.2\" D: "D:\Program Files\j2sdk_nb\_uninst"
    Now when I try to run "NetBeans IDE 3.5" I get an error message:
    Cannont load jvm.dll
    Does anyone know how to resolve this, I have tried uninstalling and re-installing and I get the same problem.
    Thanks,
    -Mike

    Hello, I have downloaded the "J2SE v 1.4.2 with
    NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the
    install finished it said there was an error and to
    please refer to the log file.
    Does anyone know how to resolve this, I have tried
    uninstalling and re-installing and I get the same
    problem.
    Thanks,
    -MikeHi Mike,
    Even I got a similar error message inspite of trying to re-install atleast 10 times! So I gave up and did this:
    1) I downloded J2SE SDK 1.4.2 seperately.
    2) I then downloded JPad Pro IDE (latest version).
    Now both are working really fine for me. :-) Could'nt be bothered to try again and again.
    Its up to you if you want to get the NetBeans installation done but all I wanted was a good IDE and the latest version of the JDK. I have been using it for the last 3 days and it is working perfectly fine!
    Regards :-)
    Vijay

  • Sun Studio is unable to find a supported version of the NetBeans IDE at the

    I'm following the system install instructions in the Grid Compute Utility guide, Appendix A "Building a Local Development Environment" and am getting stuck on step 4, installing sunstudio. I'm running Solaris 5.10 on x86 and can run netbeans IDE without problem. Here is some info, I'm not sure what other system info is relevant:
    bash-3.00# which netbeans
    /opt/netbeans-5.5.1/bin/netbeans
    bash-3.00# which sunstudio
    /usr/bin/sunstudio
    bash-3.00# sunstudio
    Validating NetBeans IDE at: "/opt/SUNWspro/../netbeans-5.5.1"
    Sun Studio is unable to find a supported version of the NetBeans IDE at the specified location.
    Sun Studio requires a NetBeans IDE version 5.5.1 with NetBeans C/C++ Development Pack version 5.5.1
    installed. Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/netbeans-5.5.1 location, if exists
    3) At /opt/SUNWspro/../netbeans-5.5.1 location, if exists
    4) At /opt/SUNWspro/../../netbeans-5.5.1 location, if exists
    Please run the System Preparation Tool (prepare_system), if available, to set up your environment.
    Any help!?

    Did you install NetBeans separately or let Sun Studio installer do it? The latter usually results in working configuration.
    I think that NetBeans installation simply doesn't have c++ pack; you can install one following usual NetBeans modules installation path and then re-try starting Sun Studio.
    Another option is to uninstall NetBeans and re-install Sun Studio using its installer, which should set up NetBeans properly.

  • How to connect  netbeans ide with ms access?

    hi,
    i am using netbeans ide (latest one) . I use new project option to create a new project.Then i use java desktop application option to create a java desktop application.Then i get an error unable to get schemas.
    Could anybody explain what this error is and how to solve this problem.
    Thanking you ,
    Mani.

    Netbeans related questions belong in netbeans forums.
    Alternatively look into JDBC
    Mel

  • Preverification Error while using kXML with Netbeans IDE

    Hello All,
    I am using Netbeans IDE for wrting a program that parses a xml using
    kXML and display some results on screen.
    The Netbeans IDE gives the various obfuscation levels.
    The code is properly compiled at any level less than the
    highest obfuscation level. If I compile it at HIGH obfuscation level then it gives the following error-----
    Error preverifying class e
    VERIFIER ERROR e.a(Ll;)Lorg/kxml/kdom/Element;:
    Cannot find class org/kxml/kdom/Element
    D:\Netbeans_Workspace\TestObfuscation\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 4 seconds)
    How can we obfuscate the program using highest level of obfuscation.
    Thanks
    Vikas

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

Maybe you are looking for

  • Is there a page or size limit in Pages?

    I can't seem to add any more pages to my document, either on my phone or iPad? Does anyone know if this is a page or size or picture limit? Thanks.

  • Light Framework Page-Detailed Navigation error

    Hi, When i use the light framework page and change the number of display levels to 1 the detailed navigation contents disappear. is this a  known error..? Is there anyway to get around this..? Thanks, rocky

  • OS LION and POWER PC

    Bonjour. Je viens de télécharger OS Lion. Mais je n'ai plus accès à Word et tous mes documents word. On m'indique que Power PC n'est plus pris en charge. Comment dois-je faire pour utiliser de nouveau word? Hello. I have just downloaded OS Lion. But

  • OS10.9 and Avaya B159 conf phone

    Using Skype on a new iMac running OS10.9.4 and an Avaya B159 conference phone. On the old mac (iMac running 10.6) I was able to select the Avaya phone in the preferences of Skype and everything worked sweet, now (in 10.9) the Avaya is no longer recog

  • New Security update ipod touch 4th gen

    I was down loading a few new apps/games for my 32gb 4th gen ipod touch using the ipod it's self  last nite 18-9-2011, after they where down loaded i connected my ipod to my computers itunes i went in the back up stage copying the app's/games to my it