Some java probles

Hi,
I wrote a java application with JBuider2 v2.00 that under JBuilder environment works well , but if I try to run it from the DOS command line with java ...,
this message is displied:
Exception in thread "main" java.lang.VerifyError: (class: bil01, method: main signature: ([Ljava/lang/String;)V) Incompatible argument to function
I think the  CLASSPATH is right because I can compile correctly with javac in DOS.
An Other application print a report (only one page) using    PrintJob pj = getToolkit().getPrintJob(...   and  printAll(g);
all works well until the application is active,but after it is closed  it's impossibile to use again the printer because the a message tell that the printer in in use by an other job.
How can I release the printer? I tried using the method  .end  and  .finalize, without results.
I'm not able to use the "commapi" donwloded from Sun working with JBuilder2.
I'm copied the comm.jar and the javax.comm.properties files in the directory \jbuilder2\java\lib and the win32com.dll into \jbuilder2\java\bin
how specified in the documentation supplied by Sun.
whit the JBuilder2 tools menu I modified the Default project properties adding a new library with the comm.jar file.
This api works well when I use them whit javac or java from DOS Commad line, but JBuilder  cannot import javax.comm.* .
Someone can help me?
thanks
Danilo
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Your problems seems to be of the CLASSPATH/IDE environment nature and as such belong on "New To Java Technology" or "Java Programming" forums, certainly not on this one.
Also, because the forum engine does not manage discussion threads it would be much easier for you to get help if you split your post into several independent posts for each question.
Last, but not least:
http://forum.java.sun.com/thread.jsp?forum=31&thread=362421
http://forum.java.sun.com/thread.jsp?forum=54&thread=190747

Similar Messages

  • Is it possible to load a non-standard image using some Java API?

    Hi,
    My "problem" is:
    1. I have an image called "mediterranean_sea.IMG" (non-standard image format)
    2. I need to process it (histogram, palette, etc).
    3. I'm wondering if it is possible to load this image an process it using some Java API.
    4. I've tried to do this using JAI but I think that this API only works with TIFF, PNG, JPEG, etc.
    Any idea?
    Thanks in advance,
    Roger

    [url http://forum.java.sun.com/thread.jsp?thread=468188&forum=31]Cross-post

  • Some Java Thread error in Xp (Urgent)

    HI all,
    I am working on a 3 tier software and it is running fine on all machines except one "The XP Machine",
    The problem is when i m going tru http://appserv:13000 it starts executing but in between an error comes that shows that some java thread or null pointer error and execution stops, i have faced similar type of error in WIN 98 but after installing java virtual machine it was sorted.
    but on this perticular machine i have already installed this JVM, but still problem is as it is.
    Please help me to sort this problem,
    Thanks & regards
    Tehzeeb Ahmed

    Tehzeeb,
    this is an Oracle Forms discussion forum. General Java questions are best answered on teh J2EE forum or the JDeveloper forum.
    Btw.: You need to be more specific when describing the problem.
    Frank

  • How to get hold of the JavaFX applet in some java code called from it

    I have a scenario where I am trying to reuse some java libraries that existed before and used the Applet API. In order to give a new UI to these APIs I am redesigning the front end using JavaFX. I can create instances of java classes from these old libraries. Methods on these old classes take java.applet.Applet as an argument.
    When the JavaFX applet is deployed as an applet, how can one get hold of the corresponding Applet object?
    Thanks in advance.

    When run as an applet, FX.getArgument("javafx.applet") will return the JApplet instance.

  • J2EE:some java processes running

    HI!
    I have a general question regarding the SAP Solution Manager.
    We have succesfully installed SAP SOLMAN 4.0 (Windows, Oracle).
    Unfortunately when I start SAP system with MMC-Console, I see that the Java-instance is yellow.
    (disp+work.exe --> tells, J2EE:some java processes running).
    I cann log on to the system, but it scares me a lot (in Tr. SICK are no errors).
    <b>Can some one tell, wheter it is critical and how can I solve this problem?</b>
    Thank you!
    regards

    it seems, that your j2ee engine is not coming up correctly.
    Check note 943498  (and also see other relevant notes in Note 724452 - Central Note for SAP NetWeaver Java Server 04/2004s)
    Markus

  • When trying to use my webmail service it says i need some java to run reply to the emails.  i am using an iPad iOS 6.1.3

    when trying to use my webmail service it says i need some java to run reply to the emails.  i am using an iPad iOS 6.1.3
    what do i hve to do to be able to use my webmail ?

    Java is not supported on iPads. Does your provider have a non-Java version or have their own app, or could you use the Mail or a third-party email app for it ?

  • I need to insert some Java script in my muse page. What is the best way to do that?

    I have a site I've built in Muse. I need to add a video (and not via youtube) to my  Muse site as well as some Java script. I'm not sure how to do that. I have some Java script to make appointments and scheduling but can't add it to that Muse page. Any thoughts? Thanks

    1. right click on your page
    2. choose page properties
    3. choose metadata
    4. add javascript in head section
    <script type="text/javascript">
    </script>
    or choose object and then insert html
    you can right click that object and choose edit html and (re)write code.

  • I need some Java inspiration

    Maybe because I'm running on empty, waiting for lunch, but I'm not feeling inspired.
    So, I need some Java inspiration. What was the last Java-"thing" (anything, from a coding trick, to a class, package, tool, etc...) that made you say "giddy-up!"

    > super cool stuff.
    Another example from the book, but I'll write the Java-equivalent first.
    List list = Arrays.asList(
        Arrays.asList(1, 0),
        Arrays.asList(0, 1, 2)
    Collections.sort(list, new Comparator() { // sort by first element
        public int compare(Object o1, Object o2) {
            List list1 = (List) o1;
            List list2 = (List) o2;
            Integer a = (Integer) list1.get(0);
            Integer b = (Integer) list2.get(0);
            return a.compareTo(b);
    List expected = Arrays.asList(
        Arrays.asList(0, 1, 2),
        Arrays.asList(1, 0)
    assert list.equals(expected);Here's the Groovy equivalent:
    def list = [ [1, 0], [0, 1, 2] ]
    list = list.sort { a, b -> a[0] <=> b[0] } // sort by first element
    assert list == [ [0, 1, 2], [1, 0] ]Oh, and I'm with duffymo. Spring is a blast.
    ~

  • Help with some java work ... :(

    Hi, I was wondering can anyone here give me some help or show me the way with this programming assignment. This is my first week of programming in Java and is really struggling ...
    I already have some very useful help from some people on here but still have no luck.
    Below is what my assignment is about and what I've done so far, sorry if it's very basic but I'm trying my hardest.
    You are required to write a program in Java that can store the details of three books. Their details are
    Author
    Shelf location
    Availability
    The program should give each book a unique shelf location starting from 0001. The details should be entered from the keyboard. The program should, on request, be able to print the details of each book to the screen. The program should terminate on request. The program should first ask for a preset password to be given before continuing executing any operation described above
    public class Library {
    public static void main(String[] args) {
    String[][] books =
         { "Shelf Location", "Author   ", "Book Name     ", "Availability" },
    { "0001          ", "A. Smith ", "Hello World   ", "1           " },
    { "0002          ", "C. Jones ", "Goodbye World ", "0           " },
    { "0003          ", "D. Wan   ", "Whatever      ", "5           " }
    for (int i = 0; i < books.length; i++) {
         System.out.print(books[0] + " ");
    for (int j = 1; j < books[i].length; j++) {
         System.out.print(books[i][j] + " ");
         System.out.println();
    import java.io.*;
    public class Login2
    private static BufferedReader in;
    private static BufferedReader keyboard;
    public static void main(String[] args) throws IOException
    keyboard = new BufferedReader(
    new InputStreamReader(System.in));
    String input;
    boolean done = false;
    while (!done)
    System.out.print("Enter Password in UPPERCASE (QUIT to exit)");
    input = keyboard.readLine();
    if ((input.equals("LOGIN")) || (input.equalsIgnoreCase("QUIT")))
    done =
    true;
    return.Library();
    I was told to use cases, instances, etc ... nothing complicated is needed but it is still to much for me. I saw some examples of people's work and they only have approx 1.5 pages of code.
    Thanx very much for people who reads this thread and offers me help.

    Here's something to play around with (minimal error handling)
    import java.io.*;
    class Library
      private final String password = "java";
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      private String books[][] = new String[3000][];
      int bookTotal = 0;
      public Library() throws IOException
        options();
      private void options() throws IOException
        System.out.print("\nLibrary Options - \n0 - quit\n1 - Enter book details"+
              "\n2 - List book details\n\nPlease enter selection number: ");
        int selection = Integer.parseInt(br.readLine());
        if(selection == 0) goodBye();
        else
          checkPassword();
          if(selection == 1) newBook();
          else listBook();
      private void newBook() throws IOException
        String another="";
        do
          if(bookTotal == books.length)
            System.out.println("Unable to add more books");
            return;
          books[bookTotal] = new String[4];
          System.out.print("\nEnter title details: ");
          books[bookTotal][0] = br.readLine();
          System.out.print("Enter author details: ");
          books[bookTotal][1] = br.readLine();
          System.out.print("Enter shelf location details: ");
          books[bookTotal][2] = br.readLine();
          System.out.print("\n0 - out of stock\n1 - available\n2 - on loan"+
                                           "\nEnter availability details: ");
          books[bookTotal][3] = br.readLine();
          bookTotal++;
          System.out.print("\nEnter another book? (y/n): ");
          another = br.readLine();
        }while(another.toLowerCase().equals("y"));
        options();
      private void listBook() throws IOException
        String another="";
        String titles = "\n";
        String availability[] = {"out of stock","available","on loan"};
        for(int i=0;i<bookTotal;i++) titles += (i+1)+" - "+books[0]+"\n";
    int selection = 0;
    if(bookTotal > 0)
    do
    System.out.print(titles+ "Please enter selection number: ");
    selection = Integer.parseInt(br.readLine()) - 1;
    System.out.println("\nBook title = "+books[selection][0]);
    System.out.println("Book author = "+books[selection][1]);
    System.out.println("Book shelf location = "+books[selection][2]);
    System.out.println("Availability = "+availability[Integer.parseInt(books[selection][3])]);
    System.out.print("\nList another book? (y/n): ");
    another = br.readLine();
    }while(another.toLowerCase().equals("y"));
    else System.out.println("\nno books to list\n");
    options();
    private void goodBye()
    System.out.println("\nThank you for using the Library program.\nGoodbye.\n");
    System.exit(0);
    private void checkPassword() throws IOException
    System.out.print("\nEnter password to continue: ");
    String pwd = br.readLine();
    if(!pwd.equals(password)) goodBye();
    public static void main(String args[]) throws IOException
    new Library();

  • Captivate 8: How to add a button onto a question slide to invoke some java script?

    I have some question slides where the user has to guess an item on a picture. Because the picture is very small, I want to add a zoom button which calls a function in my LMS to popup the picture in a bigger window. I could not find a way to add a button where I can call java script, so I tried to solve this by using a smart shape with option "use as button" set and adding the java script action. This works fine for the popup but now the submit button on the slide no longer works. Clicking the submit button just disables the answers and stays on the current slide even if I did not click onto the shape button previously. How can I achieve my goal to display a bigger picture of an image on my slide on the users request?
    I also tried the "ImageView" widget, but this is not a practicable solution.
    Thanks,
    Martin

    I think I found the solution: In the "Timing" tab for the shape there is an option "Pause After" which was set to 1,5 seconds. I cleared this options and now the submit button is working again.
    Martin

  • Need some java help - arrays

    I've been learning java for the past few weeks and I'mstuck with the following question:
    Write a short program to store the input values of a user-specified amount of whole numbers and output them in a multipcation matrix form, with correct formatting.
    For example, the input of of three numbers 1, 2 and 3 would produce the followinf matrix:
    *1 2 3*
    *2 4 6*
    *3 6 9*
    or the input of 4 numbers 3,7, 4 and 9 would produce the following matrix:
    *3 7 4 9*
    *7 49 28 63*
    *4 28 16 36*
    *9 63 36 81*
    whereby the inner numbers in the grid represent the product of the number on the corresponding top row and left most column, i.e 36 = 9 4*
    The user must be initially be allowed to specify how many numbers they wish to enter, followed by the number themselves. You must maked use of an array for this exercise. Ensure the proper formatting rules are adhered to, i.e. that all columns are aligned vertically (right justified). You can assume no input number greater than 100 will be entered.
    I was wondering if someone could help me with this?

    Or better yet:
    [] 3  7  4  9
    3  9 21 12 27
    7 21 49 28 63
    4 12 28 16 36
    9 27 63 36 81which is i am sure what you were after flounder, the formatting for some reason kept moving the top row over to the left.
    P.S. If the OP is still here...here is a bit of a head start.
    public static void main(String[] args) {
           Scanner sc1 = new Scanner(System.in);
           int[] array;
           int x;
           int y;
           System.out.println("How many numbers do you want to enter? ");
           x = sc1.nextInt();
           array = new int[x];
           System.out.println("Please enter your numbers ");
           for (int i=0;i<x;i++){
               y = sc1.nextInt();
               array=y;
    //test printing contents of array
    System.out.println("--------------");
    System.out.println();
    System.out.println("OUTPUT");
    System.out.println();
    System.out.println("--------------");
    for(int j=0;j<array.length;j++){
    System.out.print(array[j]);

  • Headache with IE11 not opening some java(i think) popups/boxes. Pls Help!

    Hello, I work as an IT guy, and this is the first time I cant solve something, or Im rly stupid with this or its an IE11 problem.
    Im running windows 8.1 with IE11, I wish I could downgrade!
    The problem: While opening a website (insurance) when I click some elements to open a popup into the same ie tab it "loads" but it does not open/show anything.
    This is the element in this website that does not work. I tried a lot of things... sfc /scannow, reinstalling java, reseting IE11 settings, etc etc etc
    I WOULD LOVE SOME HELP!
    <INPUT onclick="ShowDialog(this, 'LienholderPPro', true); return false;" onmousedown=OnMouseButtonDown(this) onfocus="OnFocusShowDialog(this,'LienholderPPro','VEH.0.veh_lien_ind'); return false;" id=VEH.0.veh_lien_ind-button
    class="lpAiDbdButton dbdButton" style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-TOP-WIDTH: 0px" src="Images/add_delete.gif" type=image name=VEH.0.veh_lien_ind-button TreatUnknownRelevanceAs="None"
    jQuery1910693633654042384="124" enabledimage="Images/add_delete.gif" disabledimage="Images/add_delete_disabled.gif">
    P.S. IT WORKS WITH GOOGLE CHROME, BUT I RLY NEED IE TO WORK.

    Hi Loy,
    Apologize for the late reply. What is your current situation?
    I think what Robert suggested here is to use F12 tools to change the User-Agent string:
    User-Agent string changes
    For the compatibility changes in IE 11, please see:
    Compatibility changes in IE 11
    Please take use of F12 tool, and then change the User-Agent string or the document mode, see if there are any differences.
    Using the F12 developer tools
    Best regards
    Michael Shao
    TechNet Community Support

  • Help with some java login code

    hey,
    I am a new member but used to visit the site regularly. I am undergoing a java project and I cannot seem to get my head around how to code when users log in, there name must appear at the top of each page they visit.
    User enters name into a text box. Do I use getter and setter methods? any bit of help would be of some advantage to me.
    Thanks for your time and I'll help with anyone else who is stuck.

    if JSP or servlet use Session...
    if you are using frame you have to consider... which frame is a top parent. that top frame will have the set and get method.. for you to set and retrieve the user name.. bear in mind that different object will have different user...
    so you have to play fair game ...hehehehe :-)

  • Help with some Java Programs

    Hi all ..
    i am a new in Java and i need some help with my School Project ,,,
    Will you help me ??
    regards,
    Toota

    People here will answer questions and comment on your code, but don't ecpect them to debug your source nor do your homework for you.

  • How to use a variable where some Java API expects an integer value ???

    Hi all,
    This may not be a proper forum to submit this query but since its a Java related problem & there are many experience people, I hope I can get some good hint and advice to solve this problem.
    I have to pass an integer value to a SPARQL query. I am using Allegrograpg API for Java application. But I am receiving the value in a variable and query accepts it as an integer. How can this kind of problem be solved. I put query under so you can see it.
    " SELECT DISTINCT ?Pattern ?Model WHERE" +
    "{ ?class rdfs:subClassOf [ owl:onProperty :locationID; " +
    " owl:hasValue \"1000\"^^xsd:int ]."+........
    The query expects an integer as has value.
    My apology again for posting it here but since its a Java releted problem, I hope some body can give me some good advice.....

    Ahhh, I don't think it is so terrible, it just depends where from is coming the variable that you are interpolating.
    The main reason for using PreparedStatement is efficiency. If you want to be safe from SQL injection you just have to do a simple REGEX substitution over the SQL string.
    --janeiros                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for