A program to test JVM

Hi,
I am looking for a small Java program that has all the [Java bytecodes|http://java.sun.com/docs/books/jvms/second_edition/html/Mnemonics.doc.html] used. In case any bytecode is not correctly implemented by a JVM then the program should returns false (or any error output) otherwise, it returns true.
I need it to quick test my JVM after everytime I change anything anywhere.
I also need some more test cases to check things like inheritance etc are working properly but this program is more critical. I can write one but it will be good to know first that such animal does not exist. I have searched google but found nothing so far.
Looking for your reply,
Edited by: ALM on Nov 30, 2008 1:21 PM

ALM wrote:
Why you think that I have never heard about openJDK? I have never seen its code and may never see it code too. But what give you idea that I never heard about it? Have I said so? Where did I said so. Noone said that.
What is your prove that all JDK must includes JVM? Do you have some references?No, not all of them. But the Sun JDK includes one and I was surprised that you would write a JVM without ever having touched that. It was in no way meant as a put-down. It was more of a mixture of disbelieve and surprise.
Why you think I do not know difference between JDK and JVM? Did I ever said so? Show me where I said that "I do not know it".No you didn't say so and no one implied that you where ignorant of the difference.
Why the heck we are having this useless discussion. Why I have to prove you everytime when I need to ask a simple question. Probably because we don't just answer questions but occasionally have to safe some beginners from themselves when they try to approach projects that are way over their head. This doesn't seem to be the case for you, but we can't know that from the beginning.
I am thankful for any help I get from here however, cannot you guys just help without questioning my abilities or identity?Again: I was not questioning your abilities, I was merely surprised that you (or anyone, really) would write an entire JVM without having at least some in-depth knowledge of the Sun JDK. Of course that knowledge is in no way necessary.

Similar Messages

  • How to run my program in "test run" mode, programmatically ??

    Hi,
    Assume I have written a Zprogram and called a BDC to input a batch of data from an CSV file. I could see that in a normal input mode, some of the SAP transactions allow me to select "Test Run" so that SAP first checks if the data I enter is correct and can be saved. It then reports a succes and then I re execute !! U can see that option in transaction KP90, Delete Planned cost.
    Can I do the same programmatically so that I ensure that my batch data upload will be successful for this set of data ??
    Also, another question related to BDC... what happens when a record fails to confirm the SAP input rules ?? will only that be skipped from the batch input and rest be stored in the DB or will the entire batch of data will be reverted , something like ROLLBACK ??
    thanks

    hi,
       set one flag in the program for test run.
       if flag = 'X'.
          write success message here.
          dont save ur data
       else.
         save ur data
       endif.
       regarding ur 2nd question if one record is error also the data will not be updated for all the records.
       as u had mentioned it will ROLLBACK

  • Apparent version mismatch between DOS java -showversion and Test JVM

    Howdy! I have an application, BBed, which is billed as "a Java-based standalone offline BBcode editor". The instructions say to unpack the jar file (java -jar bbed.jar) using the DOS command window. This app needs Java 1.4.2 and 1.5. When I do java -showversion at the command prompt, I get
    java version "1.3.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
    Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
    However, when I run the Test JVM applet on the Java website, it assures me that I have 1.6. And the version of the Java Console in XP's Control Panel says "1.6.0_02-b06". Further, both FireFox 2.0 and Netscape 7.2 show that I have 1.6.0_02 plugins.
    How do I get JVM 1.6.0_02 to show up in the DOS window, so I can get this app to run?

    This was solved. The HPUX 'had' process (a few patches behind) had gone rogue and was eating up hundreds of Mb of memory as well as upsetting the box in general. Furthermore, the box is low on memory.
    The JDBC is still working slowly compared with the UAT box looking at its own database but that's a separate issue.

  • Programming aptitude tests

    Has anyone had to take an aptitude test for a job interview?
    I have an interview for a junior Java programmer at a very large corporation and I have to take a personality and aptitude assessment. The personality stuff is corporate crap... but the aptitude part makes sense. However, since it is only an entry level junior position (and in fact, they only require that you have had coursework in Java) I can only guess the aptitude is based on something more than your ability to write some piece of working code. I asked if it was specific to a domain of mathematics (or any topic--- my formal training is in mathematical logic) but they said it was "only a pure aptitude" test. Um... okay.
    After looking at the normal pop-crap aptitude stuff one expects to find on a blind google search, I came across something called the
    Berger Aptitude for Programing Test (B-Apt)
    Has anyone heard of this or had to take it? Have you had to take any other kind?
    Also, what does everyone think about aptitude testing for programming jobs? I'm also curious to know how many of you list 'Arch' specifically on your resume? (Under computer skills I put ==> Platforms: Linux (Ubuntu, Fedora, Arch), Mac (OSX), Windows (XP, Vista) ).

    Cyrusm wrote:
    I had a pretty informal aptitude test when I was interviewing for my current positon.  my boss asked me to solve a bunch of puzzles basically.
    puzzle 1:
    you have 5 pill bottles each with 5 pills. 4 of the bottles contain 5mg pills, 1 contains 4mg pills, you may only take one mass measurement.
    which bottle contains the 4mg pills? and explain your reasoning.
    puzzle 2:
    puzzle 2: The school has 100 lockers. One by one each student has to go the lockers and open them in the following pattern:
    Student 1 opens all the lockers
    Student 2 goes and closes every second locker
    Student 3 goes and "changes the state" of every third locker i.e. if its open , close etc and vice versa.
    Student 4 changes the state of every 4th locker.
    .Student n changes the state of every nth locker
    This goes on for all 100 students.
    which lockers are open after the 100th student is done with his task.
    puzzle 3:
    there are twelve coins, eleven of which are identical and one of which is different, but it is not known whether it is heavier or lighter than the others.
    what is the minimum number of weighings with a balance necessary to determine which coin is the counterfeit? and explain your reasoning.
    and so on and so forth, he also made me solve a rubix cube and a couple knights and knaves logic problems and a chess problem, I managed to get them all right, and I got the job   so yay.
    as far as programming aptitude tests go, I figure if you're going to hire someone, you might want to measure their ability to do the job.
    seeing as im a college student (computer systems analyst) who is going to be applying for my coop in january, I am really curious to know the answer to the first question.

  • 'exiting' program without stopping jvm

    Can anyone please tell me how to exit my standalone java program without stopping the jvm ?!
    ie without using System.exit(*). Since I read it stops the jvm also along with the program !
    I only want my program with 'main' method in it to stop.
    Thanks

    The most common way is just to let the main method complete. Here is a simple programimport javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame {
      public Test() {
        JPanel content = (JPanel)getContentPane();
        content.setLayout(new BorderLayout());
        JLabel myLabel = new JLabel("I am a Label");
        myLabel.addMouseListener(new MouseAdapter() {
          public void mouseReleased(MouseEvent me) {
         System.out.println("De Label, De Label");
        content.add(myLabel, BorderLayout.SOUTH);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(300,300);
        setVisible(true);
      public static void main(String[] args) {
        new Test();
    }When the line
    new Test(); completes, the main method will exit and the event thread will handle exit & mouse clicks. Is this what you mean?

  • How to run a java program in the JVM of an already running program?

    As far as I know about JVM, each time we run a program a separate instance of JVM is created where the program runs. Correct me if I am wrong.
    Is there any way for another program to execute itself in the same JVM?
    Currently I am working on JFCUnit which is a tool used to automate swing applications. I am trying to automate JConsole.
    If I open "JConsole.exe" through a program and then try to get the handles using JFCUnit, things are not working.
    If I use JConsole.jar in JDK/lib and create a new instance of JConsole and then try to get the handles using JFCUnit, I am able to proceed with automation.
    But here comes the problem :-
    The application which needs to be automated through JConsole requires it to be started with few arguments, which is as follows:
    %JDK_HOME%\bin\jconsole -J-Djava.class.path=%CLASSPATH% -J-Dcom.sun.management.jmxremote.ssl=false -J-Dcom.sun.management.jmxremote.authenticate=true -J-Djmx.remote.protocol.provider.pkgs=oracle.oc4j.admin.jmx.remote "service:jmx:rmi://localhost:23791"So this problem can be solved in two ways,
    Either
    1. JFCunit could be made to recognize the JConsole.exe which would be running is a different JVM.
    OR
    2. JConsole.jar to be used in a way so that it takes the required arguments, hereby an instance of JConsole would be created that too in the same JVM as that of the program.
    I am more interested in the first solution as it would definitely be helpful in other projects as well.
    Please let me know if any other solution is possible.
    Any kinda solution is appreciated :)
    Thanks in advance.

    Give a look at Terracota.
    http://www.terracottatech.com/

  • How to transport a ABAP program to Test and Production?

    I created a ABAP program and used in a Process chain. I did transport to Testing system. I got an error message that program didn't not find when I was trying to run that Process Chain.
    How can collect the Program and transport it again? Thanks!

    steps required.
    1) find the name of the program
    2) collect it in the transport request.
    1)go to the process chains maintaincne and right click on the abap process > to the maintaince screen and note down the name of the program
    2) go to se37 type in the program name > display > menu > goto > object directory entry.
    3) go to se10 > request and check the attributes of the object >
    r3tr-fugr- ( package name ) > select the request and release it.
    Regards,
    BWer

  • Which program is the jvm?

    Hi!
    in windows system , jvm.dll is the jvm program. but in Linux system,I don't know which program is the main program of jvm? Is java in bin directory only a classloader?

    We can ask: how comes that "java" is a very small executable?
    ijbalazs@bijpc:/usr/lib/jdk1.4.2> find . -name java -ls
    248167 24 -rwxr-xr-x 1 root root 24564 j�n 20 2003 ./bin/java
    247526 24 -rwxr-xr-x 1 root root 24564 j�n 20 2003 ./jre/bin/java
    Well, maybe so:
    ijbalazs@bijpc:/usr/lib/jdk1.4.2> find . -name libjvm.so -ls
    247551 5044 -rwxr-xr-x 1 root root 5159829 j�n 20 2003 ./jre/lib/i386/client/libjvm.so
    247545 7487 -rwxr-xr-x 1 root root 7657624 j�n 20 2003 ./jre/lib/i386/server/libjvm.so
    ijbalazs@bijpc:/usr/lib/jdk1.4.2>

  • Transaction or standard program for testing Open SQL statements

    Hi experts,
    Is there a standard program or transaction that can be used to test Open SQL statements?, I was thinking in something similar to a SQL client like sqlcli, but for Open SQL and within SAP GUI.
    I know i can write a test ABAP program for this matter but I rather a standard testing facily in this case
    Thank you for any help
    regards

    Hi Ozcan
    I tried DB02 -> Diagnosis -> SQL Command editor , but I couldn't made it work. It is for Open SQL or for Native SQL?
    I tried the following simple Open SQL statements inside the SQL Code tab there were erros
    SELECT *
    FROM /BI0/PCOMP_CODE
    error was: Incorrect syntax near '/'.
    SELECT * FROM DD03L
    error was: Invalid object name 'DD03L'.
    Where is the mistake?
    regards

  • Program to test speed of internal network?

    Hi,
    Does anyone know of a program that I can use to test the speed of my internal network? A Windows program would be preferable as I am trying to see how much throughput I am getting from my MacBook Pro running Vista over my 802.11n AEBS to my Dell PC running Windows XP Home.
    Thanks.

    Look for a version of TTCP, a network throughput testing tool that's been around for decades. Here's one example.
    Cheers,
    Andreas

  • Program to test RAM

    Currently I own a G5 with 8gig of RAM. It seems that Aperture is a RAM hog. Is there a program other than (memtest) that will fully test all the
    RAM?
    Dual Core 2.5   Mac OS X (10.4.7)   Hugh System 4210 raid

    Memory problems can be very intermittent. Testing memory can be hit and miss. I ran my hardware tester once and finally caught an error after about 20 passes. I then ran it again and it checked OK. I ended up just calling and getting the module replaced. Substitution is the best way to troubleshoot a suspected memory problem.
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 

  • Program to test proxies

    Hi,
    we created interfaces between XI/PI and our target ERP-system (ECC 6.0).
    To test our proxies (interfaces from XI/PI to ERP-system) we have use as yet in the ERP system 4.7
    the program SPRX_TEST_INBOUND. On our new ERP system (ECC 6.0) i can't find this report.
    Does anybody knows were i can get this program to check/test our interfaces?
    Thanks,
    Lutz

    Hello Lutz,
             In order to test Inbound/Outbound  proxies in Web AS>6.40, in SPROXY transaction option to test (F8), For Inbound you need to fill the request, which is in XML format and execute then you will get the payload, in case your inbound proxy works well. Inorder test Outbound you need to provide Interface and Service details.
    Regards,
    Prasanna

  • How to get out program information from JVM?

    I want to develop a program, in which a listener listen to JVM's operations. When a property of an object had changed, the listener can get out the property's name and value from JVM. That means I would like to monitor what JVM had done using some API.
    I kown that JDI can do this, but I don't know how to code it. I would like to get a piece of example code!
    thanks.

    have a look here:
    http://robocode.alphaworks.ibm.com/docs/jdk1.3/guide/jpda/jvmdi-spec.html
    you need to write a native application (a shared object or a dll) in order to listen to the VM

  • Is there a program to test available networks?

    I live in Manhattan, where tons of wireless networks show up, many of which are public or at least not secured. Is there a program that will cycle through all the availble networks, skipping over the locked ones, and testing the open ones to find the optimal network? Is this something that would be easy to script?

    HI Jeremychance:
    Does this widget help: http://www.apple.com/downloads/dashboard/networking_security/airtrafficcontrol.h tml

  • Programs To Test Comps

    Hi,
    Im somewhat new and was wondering what are the test or programs you guys use to test your computer i.e like burning in your comp, memory testing, gamje testing, etc
    Thnx

    3dmark is good for video test...ie games
    sandra is good for burn in and bech marks
    prime amd memtest are for mem and testing stability.
    comanche4 bench is a good video card frame rate test and fun to watch
    you may have to run it twice the fist time didn't work for me
    but i used it to see how much oc ing made a diff
    fraps is another frame rate grabber but i havent used that one

Maybe you are looking for

  • MSI X48C PLatinum Cannot Power ON

    hello, I have big problem with my compie. At firtst when I boot up my compie this morning, system can boot up but when I play games just 1 minute, the system freeze. So, I suspect vga card/prosesor is wrong, then I clean their heatsink n change pasta

  • IWeb FTPKit plugin error what can I do?????

    Process:         iWeb [147] Path:            /Applications/iWeb.app/Contents/MacOS/iWeb Identifier:      com.apple.iWeb Version:         3.0.4 (304) Build Info:      iWeb-6010000~1 Code Type:       X86 (Native) Parent Process:  launchd [95] PlugIn Pa

  • Presets and Profiles

    1.  What is the specific difference between the 2?  Is a profile purely about colour? (as the sliders in the profile pane only relate to colour adjustments). 2.  A preset can be applied on import  (eg, I am now running a  'capture sharpening' preset

  • About License "Can I install OEM9i on my PC? If I have 8i and 10g License."

    I have License of Oracle8i & EBS11i running on Solaris 5.8 and License of Oracle10g & Pelplesoft running on AIX P550. I'm know now have new OEM 10g grid...., But I can't setup to use it. I'm ever use OEM 9i and found it good than OEM 8i. I like it. P

  • Ipad no me deja subir archivos a formularios web

    Hola a tods, tengo el problema que al intentar subir arhivos  desde mi iPad a mi perfil de colaboradores que tengo en la web de  certificación energética CertiFACIL.es cargo el archivo, le doy a aceptar e inmediatamente la casilla se vacía. Lo he int