VirtualBox

Changeset 29788 in vbox


Ignore:
Timestamp:
May 25, 2010 2:18:41 PM (15 years ago)
Author:
vboxsync
Message:

Java bridge: MSCOM basics

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r29771 r29788  
    42934293 VBOX_JAR   = $(VBOX_JAVA_HOME)/Commands/jar
    42944294 VBOX_JAVA_INC = $(VBOX_JAVA_HOME)/Headers
     4295
    42954296else
    4296  ifeq ($(KBUILD_TARGET), linux)
    4297   VBOX_JAVA_HOME ?= /usr/lib/jvm/java-6-sun
    4298  endif
    4299  ifeq ($(KBUILD_TARGET), solaris)
     4297
     4298ifeq ($(KBUILD_TARGET), linux)
     4299 VBOX_JAVA_HOME ?= /usr/lib/jvm/java-6-sun
     4300endif
     4301
     4302ifeq ($(KBUILD_TARGET), solaris)
    43004303 # VBOX_JAVA_HOME ?= /usr/jdk/jdk1.6.0
    43014304   VBOX_JAVA_HOME ?= /usr/java
    4302  endif
     4305endif
     4306
     4307ifeq ($(KBUILD_TARGET), win)
     4308 VBOX_JAVA_HOME ?= c:/jdk
     4309endif
     4310
    43034311 VBOX_JAVAC = $(VBOX_JAVA_HOME)/bin/javac
    43044312 VBOX_JAVAH = $(VBOX_JAVA_HOME)/bin/javah
  • trunk/src/VBox/Main/Makefile.kmk

    r29771 r29788  
    869869              --stringparam G_vboxGlueStyle mscom              \
    870870              -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
    871         $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java/
     871        $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java   
    872872        $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
    873873
  • trunk/src/VBox/Main/glue/tests/Makefile.kmk

    r29784 r29788  
    1010# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1111#
    12 
    1312ifeq ($(KBUILD_HOST),darwin)
    1413 VBOX_BIN=/Applications/VirtualBox.app/Contents/MacOS
    1514 VBOX_SDK=$(VBOX_BIN)/sdk
    16 # JAVA_OPT= -d32
     15# JAVA_ARGS += -d32
    1716endif
    1817
     
    2524 VBOX_SDK=e:/ws/out/win.amd64/debug/bin/sdk
    2625 VBOX_BIN=e:/ws/out/win.amd64/debug/bin
     26 JACOB_DIR=e:/ws/src/libs/jacob-1.15-M3/
     27 JACOB_JAR=$(JACOB_DIR)/jacob.jar
     28 CLASSPATH += $(JACOB_JAR)$(SEP)
     29 JAVA_ARGS += -Djava.library.path=$(JACOB_DIR)
    2730endif
    2831
    2932ifeq ($(KBUILD_HOST),win)
    3033 VBOX_JAR=$(VBOX_SDK)/bindings/mscom/java/vboxjmscom.jar
     34 SEP=\;
    3135else
    3236 VBOX_JAR=$(VBOX_SDK)/bindings/xpcom/java/vboxjxpcom.jar
     37 SEP=:
    3338endif
     39
     40JAVA_ARGS += -Dvbox.home=$(VBOX_BIN)
     41CLASSPATH  := $(CLASSPATH)$(VBOX_JAR)$(SEP).
    3442
    3543all: testvb
     
    3745testvb:
    3846        javac -cp $(VBOX_JAR) TestVBox.java
    39         java $(JAVA_OPT) -cp  $(VBOX_JAR):. -Dvbox.home=$(VBOX_BIN) TestVBox
     47        java $(JAVA_ARGS) -cp $(CLASSPATH) TestVBox
    4048
Note: See TracChangeset for help on using the changeset viewer.

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