Compiling then running

Hi, I wrote a program in JBuilder. In JBuilder I defined the path to the package I was importing. I then tried to run the program outside of JBuilder. I got an error when it tried to call a function that is defined in the package (The standard java.lang.NoClassDefFoundError error). Question: How do I make it so I can put my program on another computer without running it through JBuilder (and setting the path to the package in there? I tried setting the classpath (in windows) to the package but that doesn't seem to work. I guess my question really is: How do you deploy Java apps?

If you're using non-java packages, then you need to deploy those with your java app. I personally would do 1 of 2 things (of the top of my head, there's probably better ways):
1. The non-java package is already a jar file. Jar my app into a jar file that access the other jar file. You only have to distribute 2 jar files now.
2. Cram it all into 1 jar file.
I think I'd probably go with option 2. Unless you had multiple apps that accessed the same package, then I'd make it seperate.
Cheers,
Radish21

Similar Messages

  • Compiling and running a package

    Hi
    Iduring making a project i am facing a problem. I have two files under the directory c:\jdk1.3\ghosh\das, named as ghosh.java and das.java
    they are like the folloing:
    ghosh.java
    package.java.das;
    import java.io.*;
    import.java.util.*;
    public class ghosh
    public static void main(String args[])
    das dipak = new das();
    dipak.prn();
    das.java
    package ghosh.das;
    import java.io.*;
    import java.util.*;
    public class das
    das();
    public void prn()
    System.out.println("Package");
    If you please tell me the way to compile and & run this package, I will be highly thankful to you.
    thanx in andvance.
    sudipta

    The statement "package.java.das;" won't compile. Do you mean "package java.das;" or do you mean "package ghosh.das;"? The -d option might not give you the result you want. If you mean, ""package java.das;" and you compile with "-d c:\jdk1.3" then the compiler will create a directory named java in the jdk1.3 directory and create a .class file inside the java directory.
    Depending on the package statement, you execute the ghosh class with "java java.das.ghosh" or "java ghosh.das.ghosh"

  • 9.0.3 "Bug" report regarding paths, compiling, and running

    I don't know if this is a bug or some kind of strange feature but it caused me to lose about an hour and a half of work before I figured out what was going on.
    BACKGROUND:
    I have a project UVDebug.jpr. It's full pathname is :
    C:\My Documents\OracleJDev\Visia\UVDebug\UVDebug.jpr
    Now this project has one file in it: UVDebug.java, however, this java source code file doesn't live in a subfolder of the folder containing the project. Shouldn't be a problem. It's path is
    C:\My Documents\OracleJDev\Visia\VisiaProject\src\debug\visia\UVDebug.java
    As far as I know now, the files you add to a project can live anywhere.
    The output path (where the class files get created/saved) IS a subfolder of the project folder. It's path is
    C:\My Documents\OracleJDev\Visia\UVDebug\classes
    THIS WORKS:
    If I FIRST click the rebuild project button, the class gets created in the correct folder:
    C:\My Documents\OracleJDev\Visia\UVDebug\classes\debug\visia\UVDebug.class
    If I then click the red bug button to run the project in debug mode, it works fine.
    THIS DOES NOT WORK, BUT IT SHOULD:
    If I DO NOT first click the rebuild project button, but instead, just go directly to clicking the red bug button to run it, then it is supposed to compile the source into a class and then run the class. However, the class does not get created and when it goes to run, it throws a class not found exception.
    If the source code UVDebug.java DOES live in a sub folder of the folder containing the project, then clicking the red bug button WILL compile it and run it. I.e. the source code lives in
    C:\My Documents\OracleJDev\Visia\UVDebug instead of
    C:\My Documents\OracleJDev\Visia\VisiaProject\src\debug\visia
    However if the source code does not live in a subfolder of the folder containing the project, you must first compile the project as a separate step before you click the red bug button to run it.
    I don't know why the situation that didn't work didn't work -- it should have worked as far as I understand. Am I wrong here? Do all source code files and output class files have to be in subfolders of the project if you want to click only red bug instead of rebuild all and red bug?
    Mark Hayworth
    Cincinnati Ohio

    I really don't know exactly what happened as what you have described should all work.
    Try those following steps:
    - Completely clean out your output path
    including any .cdi files you might have
    at the root of your output path
    - Go back in jdev and make sure the runner
    option is to make the application before
    running
    - Run (and/or) debug and it should work, does it?
    Michel

  • How to compile and run a java program?

    I am getting this error message, what to do?
    Exception in thread "main" java.lang.NoClassDefFoundError:
    Thanks for you help.
    Ajay

    Hello,
    I believe that this error is caused because when you
    compile and run a java program, you have to use the
    same name that is next to public class. For example,
    the program name is next to the word public class.
    For example, if a program began like this:
    public class Concat
    then the name of the program in this case is Concat
    and when you compile it you type: javac Concat.java
    when you run it type: java Concat
    depending on the name of your program.and depending on whether the class is in a package. And depending on what directory you are currently in.
    Also depending on if you set your class path you might
    have to type the above like this: jdk1.2.1\bin\javac
    Concat.java to compile, and to run you would have to
    type jdk1.2.1\bin\java Concat where you would replace
    Concat with the name of your program and replace
    jdk1.2.1 with the name of your version of java, that
    is again if you do not have your classpath set. Hope
    this helps.Your examples have nothing to do with whether the CLASSPATH is set--only with whether the PATH is set. And, it may not be jdkXXX\bin. The path to the JDK (in this case, to javac and java executables) could be anything. Classpath should be set on the command line. The OP probably did NOT set a classpath on the command line (preferred), or in the environment variables.
    Also, make sure you did not forget to put:
    public static void main(String[ ] args)
    on the line underneath the line where it says "public
    class Concat" where Concat is the name of your
    program. Again, I hope this helps.Irrelevant (with the info we have from the OP so far). The error says that the JVM can't even find the class--not that the class doesn't have a main. The "main" referred to in the error message is within the JVM itself.
    OP: Did you fix your problem? If not, what directory are your files in? Are they in a package? What command are you typing to get that error? That is, please tell us your entire command line.

  • How to compile and run windows built .fmb file in linux

    Hi,
    I have developer suite 10g installed in windows OS.
    i built a .fmb forms binary file in windows. now i want to compile and deploy this .fmb file into .fmx file in linux and run it.
    I have Oracle Application Server Enterprise version along with Forms/Reports services installed on my linux box.
    Can someone guide how to use my AS Form services in linux to complie and run my .fmb file.
    Thanks in advance,
    Philip.

    is there a easier way or is this the only way to
    compile a .fmb file in a linux machine.Yes, there also a way interactive(not in batch), but you have to need use X-session (GUI) variables DISPLAY
    You can compile module after module if you change $i with you form(FMB) userid
    frmcmp_batch.sh userid=scott/tiger@bs817 batch=no module=$i module_type=form
    compile_all=yes window_state=minimize
    Remember you must set FORMS PATH and ORACLE_HOME/bin where frmcmp_batch is
    Then, run file where you insert frmcmp_batch.sh
    How do i invoke forms builder, forms compiler in a
    linux machine where i have installed Application
    Server Enterprise edition?You don't invoke FORM BUILDER
    (assumption is that the "development" machine is a MS Windows platform and the "deployment" machine is a Unix platform)
    FMX, MMX, and PLX files are NOT portable between platforms. Source code (FMB, MMB, PLL) must be recompiled when moving from one platform to another. This includes moving from one Unix platform to another (i.e. Sun Solaris to Linux) or one Windows platform version to another.
    frmcmp_batch.sh is script that run executable (compiler) for Linux OS
    In Forms 10.1.2.0.2 and newer, the executable and script names are. frmcmp , frmcmp_batch..
    Once all of the executables have been generated the path to these files will need to be included in the Forms deployment environment. In most cases this will be the FORMS90_PATH value in the Forms env file, "default.env"
    I hope to have been clear
    Regards

  • Java compilation and running within jsp page

    hi,
    i need of a jsp page that has a textarea in which the java coding are entered and this coding is compiled and executed. The execution result is printed.
    Please guide me.

    I don't think you can invoke java compiler or run time environment at client side (browser). Even if you use applet, i think you will not be able to do it at client side. Moreover, though java virtual machine will be available in your target user's browser, but you should not expect a java compiler in users machine.
    I have seen exam sites where they have added java code compilation and execution ability. To achieve this you can do:
    1. In your JSP page use text area where user can edit java code.
    2. Provide two buttons - 'Compile' and 'Run'.
    3. On click of 'Compile' send the code to server side. In server machine create a file in a temporary location in disk and save the code content received from client.
    4. Invoke 'javac' command (as a separate process) to compile the java class created in step 3. This process will give you error/output back which you can send back to user.
    5. In case of 'Run' you must first invoke above mentioned 'Compile' service and then another service ('Run') to actually run you java class. You can build 'Run' service in similar way.
    Here you challenge would be managing multiple client requests (to compile and run java class) at the same time.
    Code to compile and run java classes:
    import java.io.*;
    * A class to compile and run java classes.
    * @author Mrityunjoy Saha
    public class JavaProcessor{
         public static void main(String[] args){
              // Option 1 to compile and option 2 to run.
              int option=1;
              if(args.length > 0){
                   option=Integer.parseInt(args[0]);
              JavaProcessor p=new JavaProcessor();
              if(option==1){
                   p.compile();
              } else {
                   p.run();
         public void run(){
              String file="FoodTest";
              String directory="C:/Users/mrityunjoy_saha/Documents/Test";     
              executeCommand("java", directory, file);
         public void compile(){
              String file="FoodTest.java";
              String directory="C:/Users/mrityunjoy_saha/Documents/Test";     
              executeCommand("javac", directory, file);
         public void executeCommand(String command, String directory, String file){
              try{
                   String[] envp=null;
                   // Make sure that you have done Java setup in your machine.
                   // To test this try invoking javac command in command prompt.
                   Process p=Runtime.getRuntime().exec(command+" "+file,envp,new File(directory));
                   BufferedReader errorStream=new BufferedReader(new InputStreamReader(p.getErrorStream()));
                   String readData="";
                   while((readData=errorStream.readLine())!=null){
                        System.out.println(readData);
                   BufferedReader outStream=new BufferedReader(new InputStreamReader(p.getInputStream()));
                   readData="";
                   while((readData=outStream.readLine())!=null){
                        System.out.println(readData);
              catch(IOException ioe){
                   ioe.printStackTrace();
    }Thanks,
    Mrityunjoy

  • Compile and run a program with Terminal

    Hello, I used TextWrangler to create a .c file on my desktop. I want to compile and run the program using Terminal. However, I am new to programming and I am not sure how to achieve this. I have Xcode with Command Line Tools downloaded. I have the file "6_19.c" on my desktop currently. Any help would be appreciated.

    Your Desktop probably isn't in your execution path, so you might want to start by moving "6_19.c" from your Desktop to your Home folder. After that, in Terminal, just do
    gcc -o 6_19 6_19.c
    The general format is
    gcc -o <name you want the compiled program to have> <name of the source>.c
    Do not put any .extension on the end of the name you want the compiled program to have. Also note that after "gcc" there's a space, then a dash and the next character is a lower case letter 'o', not a numerical zero. There's a space between the name of the compiled program and the name of the source.
    To run the program, at your terminal prompt type
    ./6_19
    The general format is dot forward slash <name of the compiled program>
    There's no spaces at all.
    Good luck.

  • Compile and run  applications under win2000

    Hi, everyone!
    im a newbie in java. can anyone tell me how to compile and run java
    applicaions under win2000 enviroment. all my applications are saved in
    floppy disk.
    thanks!

    Install J2SE 1.4, and add c:\'Java directory path'\bin to your system path (right click 'My Computer', 'Properties', 'Advanced', 'Environment Variables')
    go to your favorite text editor, load up the java files from your disks, compile them by typing "javac nameofJavafile.java", and then "java nameofJavafile" to run the program.

  • Compiling and Running Swing Programs - can't execute tutorial

    Hi,
    Help is appreciated! :)
    I'm new to java and I'm following [this tutorial|http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html] (I've pasted the code below after the error message.)
    I'm on Opensuse 11 / KDE4. Here's my output for java -version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
    I pasted the code in an editor, saved it in a temp directory as HelloWorldSwing.java
    In the console at the temp directory, I compiled without problems with "javac HelloWorldSwing.java"
    Two .class files are generated, HelloWorldSwing$1.class & HelloWorldSwing.class
    The tutorial says I can then run the app with "java HelloWorldSwing", but I get the following error.
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing (wrong name: start/HelloWorldSwing)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    package start;
    * HelloWorldSwing.java requires no other files.
    *import javax.swing.*;       
    public class HelloWorldSwing {
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("HelloWorldSwing");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Add the ubiquitous "Hello World" label.
            JLabel label = new JLabel("Hello World");
            frame.getContentPane().add(label);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    stringchopper wrote:
    I have to execute the file from a parent (project) directory all the time? if the class files are in /temp/start/ , I have to be in /temp and type:
    java start/HelloWorldSwing
    Well, you have to give the fully qualified CLASS NAME. Since your class is in a package named start, you have to specify start/HelloWorldSwing because that is your class' fully qualified name. Java has to manage class namespace and this is part of scheme. Also, while Java can use / or . as the package name separator character, it seems common that people use the period (start.HelloWorldSwing). In my view, this heps re-enforce the fact that it is a class name, not a file path.
    And, I have to have a directory named literally for my package name ("start"... "blah" won't work).
    Yes. Just like you can have different files with the same name in different directories, you can have different classes with the same name in different packages. And just like you can not have files with the same name in the same directory, you can not have the same class name in the same package.
    Why would the tut indicated running from the package directory? Perhaps something else isn't right on my system(?)
    If there is no system Classpath set, the current directory is the default Classpath.
    From the command line, it is common to use the -cp switch.java -cp /usr/myclasses mypackage.MyClass
    The link provided mentioned "echo $CLASSPATH"... mine came up empty. I've previously installed JDK and Netbeans - should I be concerned about how Netbeans will work if I set up a CLASSPATH system var?I can't help you with Netbeans but I believe most IDEs use their own method to find classes.

  • It compiles and runs, but scrollPane doesn't work.

    Bah. Why doesn't my scrollPane work? It compiles and runs but my scrollbars for the text area are nowhere to be found. This is the code I'm using to handle my scrollpane.
    public Display() {
                   setLayout(null);
                   setPreferredSize(new Dimension(270, 300));
                   setSize(270, 300);
                   items = new JTextArea(5, 5);
                   items.setBounds(5, 5, 270, 260); //x,y,width,height
                   items.setEditable(false);
                JScrollPane scrollPane = new JScrollPane(items);
                scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane.setVerticalScrollBar(new JScrollBar(Scrollbar.VERTICAL));
                JScrollBar vScrollBar = scrollPane.getVerticalScrollBar();
                vScrollBar.setAutoscrolls(true);
                scrollPane.setVerticalScrollBar(vScrollBar);
                add(scrollPane, BorderLayout.CENTER);
                   add(items);
                   amount = new JTextField(".00");
                   amount.setBounds(5, 275, 266, 25);
                   amount.setHorizontalAlignment(JTextField.RIGHT);
                   amount.setEditable(false);
                   add(amount);
              }I'm also having a problem with this one. Apparently, my I uncomment this, the compiler says "cannot find symbol getImage()" which is odd because I've imported the proper package with this method.
    private ImageIcon icon = new ImageIcon("BKLogo.gif");
              public void paintComponent(Graphics background)
                   background.drawImage(background.getImage(), 0, 0, null);  
                   //setOpaque( false );
                   //super.paintComponent(background);
                   }

    You know what you need to do then: post an SSCCE (Short, Self Contained, Correct (Compilable), Example). For info on what this entails, look at these two sites:
    http://javafaq.mine.nu/lookup?22
    http://www.physci.org/codes/sscce.jsp

  • "Compile before running" in JBuilder 7

    Hello!
    Previously I used JBuilder5. There was a checkbox in Project>Project properties>Run called "Compile before running". Usually I unmarked it to prevent unnecessary compilation.
    I found nothing corresponding in JBuilder 7.
    Can you help me?
    Thank you.

    You have to edit your run configurations ( eg. menu option Run -> Configurations, then go to the Run tab, select your configuration to get a new dialog box "Runtime properties." The run and debug tabs on this have fields "Build target". The default is probably Make, which means that it will do a make command before running or debugging. Set this to <None> to stop JBuilder from rebuilding your work before running. Obvious really...

  • HT203176 i have a slow macbook, i ran live disk utilities and said I need to repair disk from a cd. did that, I got volume repaired from the external disk. when I reboot from hdd, then run disk utility, I get the same error message i did b4 repair

    i have a slow macbook, i ran live disk utilities (from hard drive), turned out I needed to repair disk from a installation disk. Did that, I got the volume (Hard drive) repaired from the installation disk disk. To this point, great!
    When I reboot from hdd, then run disk utility, I get the same error message i did b4 repair. I went thru two rounds of this.....
    Can anyone help? thanks

    Sorry guys, I don't see how to reply to you so I use reply to "me" basically.
    So the error I get is "volume header needs minor repair" and then you need to perform repair from the installation disk message.
    I did repair not verify from the disk twice. Every time ending in the "the volume had ha been successfully repaired". Then I reboot from the internal disk. Run disk utilities from it, do verify and get the same error message I got before repair. I hope this can shed some light fr you guys. Sorry I didn't include details in the original
    MEssage.

  • How to Compile and run Smart Card Application

    hi
    any one can help me reagrding Javacard API. i download the JavaCard Development Kit from sun and install on my machine but i didn't get all java files and class files of JavaCard API. where i obtain those files so my application get compile and run.
    pls help me i m new in this technology.
    Thanks in Advance.

    My program Test.java in F:\Tomcat5\webapps\Ambika\WEB-INF\Classes. I compiled in the format below. I got like this. What should I do for this? But yesterday I compiled like this only, It compiled and the folder com\cert\Test.class is created. Today again I compiled the pgm after deleting the already created folder 'com\cert', I got the error like this.
    I've given my pgm and the thing I've got when I compiled it.
    Test.java
    package com.cert;
    public class Test
         public void display()
              System.out.println("Hai");
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>javac -d F:\Tomcat5\webapps\Ambika\WEB-INF\Classes\Test.java
    javac: no source files
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    sed
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>
    Plz help me.
    thanks in advance
    Ambika

  • How to compile and run servlets in Eclipse?

    Does somebody known how can I compile and run servlets in Eclipse IDE? I've added and configured Tomcat's plugin. I've created a project with my example servlets source, and I don't know what farther. How do I have compile it without main method? I must add web.xml file from Tomcat's directory into projects in Eclipse and modify it?
    THX Chudzik

    Try googling for "eclipse servlet", surely someone has written instructions.

  • How can I compile and run other java classes from within an application?

    Hello there everyone! I really hope that someone can help me. I am writing a program that must be able to compile and run other java classes that are in different files, much like development environments like Kawa or Forte allow you to do.
    There has to be a way of doing this ( I hope!! ), but i can't seem to find it!!
    I have tried using this command to compile:
    Runtime.getRuntime().exec ("c:\\programs\\javac className.java");
    ...and this one to run:
    Runtime.getRuntime().exec ("c:\\programs\\java className");
    ...but neither works!!! I can compile and run classes that are in the same file as my application, but I can't get it to work at all for files in different directories or files.
    PLEASE, PLEASE, PLEASE help me - i've run out of ideas, and i need this to be working in 3 days!!!
    Thank you very much for any help anyone can give me, I really appreciate it!! Thanks again!!
    Adrian ( ...in distress!! )

    public class JavaCompiler{
       public static void main(String[] args)throws Exception{ //sorry bout the laziness
          if(args == null || args.length != 1){
             System.out.println("Usage: java JavaCompiler MyClass.java");
             System.exit(0);
          String className = args[0];
          Runtime rt = Runtime.getRuntime();
          Process p = rt.exec("javac " + className); //consider setting cpath for this
          p.waitFor();
          //now try to run after it is done.
          p = rt.exec("java " + className.substring(0, (className.length() - ".java".length()));
          p.waitFor();
          //do some other stuff
    }This should get you going. You may consider looking into the System.getProperty() method in order to determine the type of OS it is running on in order to findo out what command to run. I know that the sun tool listed above is nice, but by my understanding the sun tools provided are not guaranteed to stay the same. I'm no expert on this matter, but that is one of the reasons there is no API documentation for those tools. Also, I don't believe those tools come packaged with the JRE. (Of course if you are making an IDE it will be expected that the user has an sdk installed. Good luck with figuring this thing out.

Maybe you are looking for

  • Want to understand committment mechanism in PR/PO when deleting PO items.

    Is there any documentation or help you can offer me to understand the commitment mechanism in PR (Purchase requistion) and PO (Purchase order)? We are working on SAP 4.6C and modules FI-FM and MM are implemented and working. Specifically I want to ex

  • Sending photos from lightroom to photoshop to edit

    In lightroom I want to sent the photo over to photoshop to edit. I select "edit in photoshop cc2014 and then get 3 option 1: edit a copy with LR adjustments 2: edit copy 3: edit original.number 1 workers sed over file but with no layers.  2 & 3 I get

  • Help: Iphoto 6 photos missing, gray box with exclaimation point

    Hi all. I am a terrible manager of my 14K photos. My husband said my system could not process updates because I have so little hard drive space, so I went on this massive effort to purge photos I did not need. I thought I was being virtous by going t

  • Generic import error - Lion - CS5.5 - Will not import

    Hi. I just upgraded to cs5.5 with Lion and now a number of my previous cs4 projects will not load various flavors of video. One major problem I discovered was that after installing Lion, both of my Quicktime folders in the user and system library wer

  • JBuilder 8 + Weblogic 7 : Any "getting started" docs?

              Hi.           I am getting started with JBuilder 8 and I am using it with Weblogic 7 (sp1).           I "connected" the two togther based on a one pager that I saw on BEA's site. Are           there more extensive docs that describe the nte