Why is NetBeans compiling with a sourcelevel of 1.3?

Hi,
Setup:
NetBeans 5.0
J2SE 5.0
NetBeans Mobility Pack 5.0
I'm getting this error when compiling:
MatArkiv.java:21: generics are not supported in -source 1.3 (try -source 1.5 to enable generics).
In a normal Java project changing the sourcelevel is piece of cake, but in this J2ME project I'm completely stumped where to change this setting.
Any help would be much appreciated!
Kind regards,
Mattis

> I got a project where I already have DB handlers,
controllers, facade and whatnot already in place
which I want to use with the J2ME application.
Well, i don't think any of that stuff will work in j2me...
> Does this mean I need one WEB project with servlets
handling the response / requests and one J2ME project
just for the WAP part?
Communicating with servlets is the best way to exchange information with a j2me application. But there is no WAP involved. A j2me application can communicate directly with the servlet. No WAP browser is needed.
Good luck!

Similar Messages

  • The application compiled with jdk8,click 的jnlp it can't run,why?

    The application compiled with jdk8,click 的jnlp it can‘t run,why?

    The application compiled with jdk8,click 的jnlp it can‘t run,why?

  • Can't create a compilation with different performers on iTunes 11.1.1 anymore!!! Why???

    After I updated iTunes to 11.1.1 I coudn't create a compilation with different artistes anymore! Why??? I don't want the same album cover, like 100 times...
    Thx
    DJG5500

    Generally setting a common Album title and Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    tt2

  • Windows 8 Adobe Reader will not fully open a pdf compiled with several pdf's into one - why?

    Windows 8 Adobe Reader will not fully open a pdf compiled with several pdf's into one - why?

    Hi Michael,
    “AdbeRdr11003_en_US.exe” is the download installed on our CEO’s new Windows 8 laptop.  It is a Dell XPS Re: Windows 8 Adobe Reader will not fully open a pdf compiled with several pdf's into one - why? Dell XPS 13" .  It has a full install Windows 8 Professional for its’ Operating System.
    I’ll attempt to attach the file in question.  The file opens fine on our Windows 7, and XP computers (with  the proper Adobe Reader on each).
    Our CEO says there is a message that comes up saying he needs Adobe Flash.  I’m attempting to find out whether or not he is trying to open it the ‘Metro’ view, or the ‘Desktop’ view – no answer yet.
    If your system strips the attachment, let me know, and I’ll upload the file to an ftp site {if necessary}.
    Wayne Nault
    [personal info removed by moderator]

  • Compile Netbeans Project with

    I've seen other NetBeans questions in this forum, so I think it is appropriate to post here.
    I'm using NetBeans 5.5 and I'm getting the "you're using a deprecated method" warning. How can I configure NetBeans to compile with
    -Xlint:deprecation?
    Thanks...

    Actually, you should post NetBeans questions to
    http://netbeans.org

  • Why mplayer in i686 repository is not compiled with vdpau support?

    I was kind of surprised when I find out that mplayer in i686 repository is not compiled with vdpau,
    since it is in x86_64 repository,
    I know I could enable vdpau easily by compiling the package myself,
    but wouldn't it be even better if it is built-in in the official binary?

    I think that the dynamic loader would then search for libvdpau.so, and not find it on systems without nVidia-drivers, which causes the program to not load Also, it's not very KISS to have several different packages for different needs in the main repos. That's what AUR/ABS's for.

  • I'm compiling with 1.5 but java is looking for 1.4 classes,why?

    Hello all,
    I need to compile my project with 1.5 and I have set everything correctly in my ant build script(I think) but I am getting the famous error:
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    I have been searching on Google for a couple of hours and read the whole thread on this that was locked. Most people with this error seem to want to compile with 1.4 but I'm compiling with 1.5 and for some reason it things I'm doing it with 1.4.
    If I do java -version i see 1.5, If I put -verbose when calling my build script I see 1.5 as the java version.
    I have tried with:
    jrockit_150_12
    jdk150_12

    jmejiaa wrote:
    Hello all,
    I need to compile my project with 1.5 and I have set everything correctly in my ant build script(I think) but I am getting the famous error:
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    I have been searching on Google for a couple of hours and read the whole thread on this that was locked. Most people with this error seem to want to compile with 1.4 but I'm compiling with 1.5 and for some reason it things I'm doing it with 1.4.
    Easiest explanation would be because you are.
    Actually that is the only explanation.
    If I do java -version i see 1.5, If I put -verbose when calling my build script I see 1.5 as the java version. You can find the 1.4 version and remove it or change the directory.
    One cause of this can because ant runs with a version but there are ways to make it use another one.
    And normally you don't run ant with java but rather via a script file and that specifies the java (for ant.)

  • How to make netbeans compile files as javac cmd??

    hi all...
    I have a problem running my java code from netbeans, I use netbeans 6.7 with jdk 1.6.0_16 on windows XP
    when i compile the java file in netbeans and then run it, i get an exception but if i compile the same java file using the javac from cmd then run it, everything is perfect without any error.... so i think the problem is from the compiler in my netbeans,
    I want to make the netbeans compiles the java files exactely as javac CMD, and produce the same .class files... how can i do this?
    thank you...

    You should post the error message. Maybe someone can then give you some guidance.

  • NoSuchMethodError compiling with 1.4 and running on 1.3

    Hi community,
    I have a little problem with code like the following when mixing both JDK versions:
    StringBuffer sb1 = new StringBuffer();
    sb1.append(new StringBuffer());In 1.3 this is linked to append(Object) and in 1.4 to the newly added append(StringBuffer) which does not exist in 1.3. The code compiles fine with both versions, but if compiled under 1.4 and run in 1.3 this throws NoSuchMethodError(as it should, of course).
    I understand why it is so, the question is if there is an easy way to overcome this problem. I played with the target option of javac without success(javap shows it is always linked as stated), also I read a bit in the JLS to make sure I am right why the exception is thrown.
    I see the following choices:
    1. Compile with 1.3. Not a good idea because all other our products are developed and run in 1.4;
    2. Ask the customers to upgrade to 1.4. There is some their reason for which they still stick to 1.3 and don't want to upgrade, we can't force them do it;
    3. Find such places in code and explicitly cast. But who will know what other cases like the above exist in the code. I can find where append(StringBuffer) is used in the code, but what about other methods of other JDK classes? And it is a bad idea because somewhere in time it will anyway run with 1.4.
    My question is if there is another easier option that I am missing at the moment.
    Thanks for you time and cooperation
    Mike

    Why is option 1 bad? You will be able to run it in 1.4 even if you compiled it using 1.3, so I don't see the problem? It will never run in 1.3 if you can't compile it in 1.3.Because it will always be a source of errors. Always there will be someone that will not set up their project to use 1.3 for compile or will deconfigure it while working with the other projects. Besides that as I stated source compiles fine in both versions, I don't have a compiletime problem, but a runtime one.
    I know this is the most reasonable option, I know what I would choose among the three listed above, I needed some confirmation if I have missed an option.
    and you are correct about the target flagI only mentioned the target tag just as one of the directions of my search, we always whine for others not putting effort in their problems ;)
    Thanks for opinions
    Mike

  • Plz help why its not compiling ,

    hello all i am trying to make the tutorial http://developers.sun.com/mobility/midp/articles/tutorial2/
    i have made all the steps once i try to compile it it shows the folowing error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class HitServlet or a class it depends on
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:836)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    etc.....
    i believe the error has something to do with my classpath thats why its not compiling the HitServlet.java
    if anybody can show me plz how to make this following step :
    Compiling the Servlet
    Compiling servlet code is pretty much the same as for other Java development, except for an important twist. Because the servlet API is not a core part of the Java SE platform, you'll need to add it to your CLASSPATH before you can compile servlets.
    The servlet API is contained in common/lib/servlet.jar under the Tomcat root directory. Simply add this file to your CLASSPATH and you will be able to compile HitServlet.java using javac. You can edit the CLASSPATH in the system properties or do it on the command line, as this Windows example demonstrates:
    C:\>set CLASSPATH=\jakarta-tomcat-4.1.31\common\lib\servlet.jar
    C:\>javac HitServlet.java
    i have installed the tomcat and its working fine but i dont understand how to set the classpath , i tried to make it in control panel / system / envirement and put the classpath but its still doesnt work
    please help on what i should make in my classpath and how to set it to work if not please notify me where am i making mistake thank you
    appreciate a lot help

    hello all i am trying to make the tutorial http://developers.sun.com/mobility/midp/articles/tutorial2/
    i have made all the steps once i try to compile it it shows the folowing error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class HitServlet or a class it depends on
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:836)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    etc.....
    i believe the error has something to do with my classpath thats why its not compiling the HitServlet.java
    if anybody can show me plz how to make this following step :
    Compiling the Servlet
    Compiling servlet code is pretty much the same as for other Java development, except for an important twist. Because the servlet API is not a core part of the Java SE platform, you'll need to add it to your CLASSPATH before you can compile servlets.
    The servlet API is contained in common/lib/servlet.jar under the Tomcat root directory. Simply add this file to your CLASSPATH and you will be able to compile HitServlet.java using javac. You can edit the CLASSPATH in the system properties or do it on the command line, as this Windows example demonstrates:
    C:\>set CLASSPATH=\jakarta-tomcat-4.1.31\common\lib\servlet.jar
    C:\>javac HitServlet.java
    i have installed the tomcat and its working fine but i dont understand how to set the classpath , i tried to make it in control panel / system / envirement and put the classpath but its still doesnt work
    please help on what i should make in my classpath and how to set it to work if not please notify me where am i making mistake thank you
    appreciate a lot help

  • Kaffeine embedded crash fixed when compiled with libxcb support?

    From kaffeine website:
    Embedded Kaffeine crash fixed.
    This long standing bug is now fixed in current svn ...
    In order to make it possible, we have ported Kaffeine and xine to xcb (a thread-safe replacement for xlib).
    You can give it a try right now:
    1) install libxcb=>1.0
    2) install current xine-lib cvs (it contains xcb based video output plugins: xshm and xv)
    2) install current Kaffeine svn
    Notes
    a) Both xine-lib and Kaffeine have to be compiled with xcb support (autodetected, check configure results).
    b) Kaffeine will still work with xlib based video out plugins if compiled without xcb (but then, no fix!)
    From 0.8.4 changelog:
    * xine-part: support for xcb. Requires libxcb 1.0 and xine-lib 1.1.5. Fixes several issues.
    Any reason not to incorporate this? If it lives up to it's promises It could mean kde users only need ONE media player :-)  (I have 2 installed just to get DVD menus and embedding in konqueror without crashing)
    Any thoughts?
    Cheers,
    Steve.

    I felt that the laptop was possibly overheating and that is why I started down the road to call "customer support", thinking that a fan went out or there was damage to hardware due to it over heating.  And that road got me no where in a fast manner, and two "techs" telling me it was a software related issue and that I needed to reformat the laptop (twice) and re-install to factory settings.  Even when I did this, it still had the issue and they again told me that it was software related when there was no software on the computer except for Windows 7.  The only thing that customer support helped me with is the knowledge of next time I buy a laptop, but Dell or any other laptop besides a Toshiba.  That is too bad.
    Anyway, I tried to continue on with my thinking of a possible over heating issue, so I blew air into the vents and fins of the laptop.  A lot of dust came out.  I kept blowing air into the vents until no more dust came.
    My wife had to re-install everything again to her laptop after I got the major items re-installed.  She has been running it for the last day or so with no issues.  We hope that this was the issue.  I know she enjoys the laptop when it was running well.
    I guess we will see how it goes.

  • Can't compile with any layers hidden on timeline

    Can someone explain what could possibly be going on?
    Running CS4 I have a .fla that was compiling fine yesterday.  Today I made some slight additions and it wouldn't compile, giving errors saying that various things were undefined.  I was starting to go nuts until finally I made all layers in the timeline visible and compiled again.  Now it compiles fine. 
    Just in case it was something Flash itself I created a new file, hid some layers and compiled and it was fine.  So it's not the application, just this particular file.
    What could be doing this?  Why can't I compile with hidden layers?
    Thanks for any help.

    Hi fizbeam,
    This happened to me a while ago!
    It's annoying.. somewhere in the publish settings theres a checkbox marked 'dont export hidden frames' and if it's checked it'll cause this to happen.

  • Adobe pro 9 perflight is giving  errors while  verify compilance with PDF/A-1a , but adobe pro 8 is not giving errors?

    Hi,
    Iam using preflight in adobe professional 9 to verify compilance with PDF/A-1a.  Iam getting the following errors:
    1.In an indirect object keyword "obj" is not accurately followed by an EOL marker. This is explicitly prohibited by some PDF-based iso standards.
    2.In structured PDF the document's structure is described by a hierarchy of objects.Each element is described by a dictionay of type"strucElem".
    But in the Adobe professional 8 iam no getting any errors for the same file...
    Please help me why iam getting errors in version 9 only? why those errors are not  showing in version 8?
    Thanks & Regards,
    Pathap.

    Acrobat 9's preflight is a complete implementation of PDF/A validation,
    while Acrobat 8's was missing some of the lower level tests.

  • Compiled with 1.5 and ran on 1.4

    I compiled a program with Java 1.5, and when I ran it on an environment running Java 1.4 it gives me
    java.lang.UnsupportedClassVersionError
    What's the cause of this issue? And why can't it backward-compatible?
    Is there a way to find out which version of Java a .class file is compiled with?

    Is there a way to find out which version of Java a
    .class file is compiled with?P.S. Yes, the version is encoded in the java class file. You can inspect the file using a hex editor, or write a program to dump them out (should be pretty simple).
    See http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html (specifically, minor_version, major_version). Note that the version number coded here is something other than 1.4, 1.5, etc... so you need to locate a reference which describes how these values correspond to actual JDK version numbers.

  • Applet compiled with 1.4 not running in IE 6

    I have a java applet when compiled with the 1.3 java sdk that came Oracle, runs correctly in IE 6. The applet opens a socket.
    When I compile it using 1.4 java sdk from sun and run it in IE 6 it does not work.
    When I installed the 1.4 SDK I selected to use it as IE's default java machine.
    Note if I look in the internet options, settings, view objects it shows the 1.4.1 jre twice.
    Note I can not remove the 1.3 jre that comes with Oracle as the installation is dependant on it.
    The java classes included in my applet is
    import java.net.*;
    import java.io.*;
    import java.text.*;
    import java.awt.*;
    import java.lang.Thread;
    import java.applet.*;
    I have the sdk bin directory early in the path and class path enviroment includes rt.jar from the 1.4 sdk.
    I have even been into the reg and edited IE's classpath.
    Anybody help, how do I know what jre, IE is using or why the applet won't run in IE6. Both versions run in Appletviewer.
    Once I get this working I want to add javax and org classes to start passing XML over the socket anybody got advise on this also.

    there are a couple of things to try with this. first is to try the class out with the java plugin enabled - this makes IE run the 1.4.1 VM, instead of the default 1.1 VM in IE. if this works, you probably have a version conflict in your code, and could try compiling with
    '-target 1.1'
    in your arguments. The problem I'm having is to do with finding the referenced classes in the applet. Try commenting EVERYTHING out of your applet (except 'init') and then running it. if the applet loads, the problem is that any class you try to instantiate inside the applet is not found by the browser. (NB you get the same error message with a version conflict as with a missing class file, very helpful...).
    I'm not on this list much so if you want to talk more, or if you've solved this problem, please email me at [email protected]
    String signoff = "thanks in advance for any help" OR "hope this helped"

Maybe you are looking for

  • Using Excel report in Crystal

    Post Author: tdecicco CA Forum: General We have a report created in Excel that we want to use in Crystal. We've explored the possibility of inserting it as an OLE object, but find it difficult to edit it in Crystal. Is there another way we can use th

  • ITunes 7 will not open - Error (-50)

    "The iTunes application could not be opened. An unknown error occurred (-50)." I can't find any information on this specific error anywhere - Anyone have a clue what is going on with this?

  • Flash Player Vulnerability

    When do you think apple will solve the flash player vulnerability problem with snow leopard? Is it worth installing before they make the patch? http://www.forbes.com/2009/09/03/apple-snow-leopard-technology-security-flash.ht ml?partner=artctrlinboxma

  • 2 quick java questions

    hi, im working on a large grpahics project with some people, and i had a couple of simple questions. 1) is it possible to detect the colour of a spefic pixel on an image? Maybe some sort of method that returns the color or something? This woudl be fo

  • Change log before upgrade

    I'd like to suggest that there be a changelog available to users BEFORE they do an upgrade. Or, at the very least, a changelog in the HELP section after an upgrade - but it really should be someplace on the web for review before hand.  (If it is here