VirtualBox

Changeset 31232 in vbox for trunk


Ignore:
Timestamp:
Jul 30, 2010 8:04:52 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64243
Message:

Java: testing with Java 1.5 shows that glue code is functional there too

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/tests/Makefile.kmk

    r30932 r31232  
    1313 VBOX_BIN=/Applications/VirtualBox.app/Contents/MacOS
    1414 VBOX_SDK=$(VBOX_BIN)/sdk
     15 JAVA15=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java
    1516# JAVA_ARGS += -d32
    1617endif
     
    4950        java $(JAVA_ARGS) -cp $(CLASSPATH)  TestVBox
    5051
     52JAXLIBS=../../webservice/jaxlibs/
     53# -noverify could be needed due http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=eb3fcd8f72ab4713f96e378a7575?bug_id=6614974
     54testws15:
     55        javac -target 1.5 -source 1.5 -cp $(VBOX_JAR) TestVBox.java
     56        $(JAVA15) $(JAVA_ARGS) -cp $(VBOX_JAR_WS)$(SEP)$(CLASSPATH)$(SEP)$(JAXLIBS)/jaxws-api.jar$(SEP)$(JAXLIBS)/jaxws-rt.jar \
     57            TestVBox -w -url http://localhost:18083
    5158
    5259testws:
  • trunk/src/VBox/Main/glue/tests/TestVBox.java

    r31166 r31232  
    2121    {
    2222        System.out.println("got event: " + ev);
    23 
    2423        VBoxEventType type = ev.getType();
    2524        System.out.println("type = "+type);
    26 
    2725        switch (type)
    2826        {
    2927            case OnMachineStateChanged:
     28            {
    3029                IMachineStateChangedEvent mcse = IMachineStateChangedEvent.queryInterface(ev);
    3130                if (mcse == null)
     
    3433                    System.out.println("mid="+mcse.getMachineId());
    3534                break;
     35            }
    3636        }
    3737    }
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r31117 r31232  
    458458        $(VBOXWEB_PYTHONWSSAMPLE)\
    459459        $(VBOXWEB_JAXWSSAMPLE) \
    460         $(VBOXWEB_METRICSAMPLE) \
     460        $(VBOXWEB_METRICSAMPLE)
     461
     462ifdef VBOX_WITH_OLD_JWS
     463  VBOXWEB_OTHERS               += \
    461464        $(VBOXWEB_JAVA15_JAR) \
    462465        $(VBOXWEB_JAVA16_JAR)
     466endif
    463467
    464468 #
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette