InetAddress.getLocalHost works differently with jdk1.4.0 beta65 and rc

I am using jdk1.4.0 on Linux with two network interfaces, one of them with a private IP.
When using jdk1.4.0beta65
InetAddress.getLocalHost seems to return the IP of the first entry in /etc/hosts corresponding to my machine's hostname.
With jdk1.4.0 rc I get the last entry in /etc/hosts.
I changed the order of these entries in /etc/hosts to check if it is really the reason.
I had problems with an application when getLocalHost returned the private IP.
Of course changing the order would solve my problem.
Is there any reason why this changed?
cu
Achim

I don't have the answer for you but why don't you try the following trick and see if you get a more consistent result:
try {
    Socket socket=new Socket("java.sun.com",80);
    InetAddress addr=socket.getLocalAddress();
    String HostName=addr.getHostName();
    String HostAddr=addr.getHostAddress();
} catch (Throwable e) {}
V.V.

Similar Messages

  • I have an existing new belkin modem router which works fine with quite a few wired and wireless products in my house. My question is if i buy a time capsule can i put it in another room and wirelessly connect it to the belkin modem router, I would then ju

    I have an existing new belkin modem router which works fine with quiet a few wired and wireless products in my house. My question is if i buy a time capsule can i put it in another room and wirelessly connect it to the belkin modem router, I would then just like my macbook pro and (imac future purchase) to wirelessly back up to it???????????

    Your will need to perform a Factory Default Reset on the TIme Capsule to clear out the current network settings and then reconfigure it to "join" your wireless network using the AirPort Utility setup application.
    To perform the Factory Default Reset on the Time Capsule....
    Pull the power cord from the back of the device
    Wait a few moments
    Hold in the reset button on the back of the Time Capsule and keep holding it an additional 8-10 seconds while you simultaneously plug the power cord back in to the Time Capsule
    Release the reset button after the hold period and allow 25-30 seconds for the Time Capsule to restart to a slow, blinking amber light
    On your Mac.....
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Continue
    Follow the guided setup and choose the "join" option when it appears duriing the setup
    You will need to know the exact type of wireless security that the Belkin router is using to enter this information during the setup of the Belkin. Otherwise, the Time Capsule cannot join the network, and you will receive an error message after the configuration process.

  • I receive the following error: (Error code: ssl_error_renegotiation_not_allowed) which worked fine with previous version of firefox and current safari

    Trying to get to secure website (Login site for IRB at Ochsner). Worked fine with previous version of Firefox and continues to work with safari. I receive the following error code:
    (Error code: ssl_error_renegotiation_not_allowed)
    Any Thoughts?
    Thanks,
    M White New Orleans

    Here's one solution from last year: http://dotomaz.tumblr.com/post/786443743/firefox-4-0b1-and-ssl-renegotiation

  • My mac pro suddenly turned off by itself, then after 10 minutes it started to work again with "no battery available" icon and an always-running fan!

    My mac pro suddenly turned off by itself, then after 10 minutes it started to work again with "no battery available" icon and an always-running fan!
    it's bugging me since I don't know if it's recharging or not..

    Mine has just done this too.  Did you find out what it was?

  • Embed + compiler define works different with air 3.7+ comparing to 3.5

    Hello.
    I've noticed that new compiler works differently when using construct Embed with conditional compilation (comoiler define option).
    It looks like new compiler always embeds files in output swf even if Embed construct is used in dead code. Here is full example:
    package {
      import flash.display.MovieClip;
      public class Main extends MovieClip {
        CONFIG::FOO {
          [Embed(source="foo.mp3")]
          public static var MusicTrack: Class;
        CONFIG::BAR {
          [Embed(source="bar.mp3")]
          public static var MusicTrack: Class;
    I have 2 files: foo.mp3 (~2MB) and bar.mp3 (~2.3MB). I want to embed only one of them defining CONFIG::FOO as true and CONFIG::BAR as false.
    When I compile it using AIR 3.5 with following command I get (as expected) file with size ~2.0MB:
    /opt/adobe_sdks/flex_sdk_4.6_AIR_3.5/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    /private/tmp/bug/Main.swf (2030814 bytes)
    But when I use newer AIR sdk (I tried with 3.7, 3.8 and 4.0 beta) I'm getting file with size ~4.3MB.
    /opt/adobe_sdks/AIR_4.0/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    4328386 bytes written to /private/tmp/bug/Main.swf in 9,634 seconds
    Is it expected behaviour? Is there any chance that new compiler will work in this case the same as older one?

    Another difference I encountered is that using compiler definition directly in Embed construction doesn't work. Here is example:
    public class Assets {
      [Embed(source=CONFIG::MUSIC_MP3_PATH)]
      public static var MusicTrack: Class;
    Then I pass option to the compiler:
    -define=CONFIG::MUSIC_MP3_PATH,"'sfx/music.mp3'"
    With AIR 3.5 SDK it works fine. With AIR 3.7, 3.8 and 4.0 beta I'm getting file which is smaller in size (by mp3 file size) and when running I get error: TypeError: Error #1007: Instantiation attempted on a non-constructor. (when it tries to create new instance of MusicTrack).

  • SQL Script working differently with 8i and 9i

    Hi
    I am facing strange problem with my simple SQL script called from a shell script. It bahaves differently with ORACLE 8.1.7.4 and 9.2.0.1. The machine is same.
    sqlplus -s / @Tech.sql WKC625 11 11 '11 22' ""
    This is working with 9i but it does't work with ORACLE 8.
    Actually what happens is that the argument in single quotes (') is taken as 2 separate argument.
    The Tech.sql is :
    spool add
    insert into TECH values ('&1','&2','&3','&4','&5','');
    commit;
    quit
    I tried putting double quotes also. Is something got changes between ORACLE 8 and 9i.
    Please help
    Surendra

    Are you sure it works in 9?
    If you are using UNIX, then the O/S will strip the quotes while processing the arguments. You need to use 2 single quotes around 11 22, just as you have around the empty string at the end.
    I believe that Windows does the same, but I do not use windows.
    John

  • I need to carry two iphones for work - one with a UK sim card and one with a Spainsih sim card. Can I REPLICATE contetn across two devices from one itunes account

    Hi there, is it possible to replicate the content of one iphone on a UK sim card to anotehr iphone with a Spanish sim card and carry both devices, actice, for my work purposes?

    certainly.  Synch one of your phones to iTunes.  Then restore the other phone from the first phone's backup.

  • New MBPro and iTunes does not work along with certain websites on Chrome and Safari

    I just bought my Macbook Pro 13" about two weeks ago. Everything worked fine when I was at school and at my friends house. The day I came home, I was not able to go to many websites such as Facebook.com or even my Gmail on Chrome or Safari. Also, the App Store does not load. I started using Firefox, and I am able to go on any website. Unfortuantely, the problem still exists with the App Store. Also, whenever I launch iTunes, it immediately freezes and I get the rainbow wheel and have to force quit. If I go straight to my music from Finder and click on a music file to play, it open iTunes, but freezes it and doesn't play anything. Can anyone at all help me with these problems?! I didn't expect to run into so many issues since my laptop is so new. I feel like it could have something to do with the internet at my house...

    Is it possible your home router is blocking some websites?  I used to help parents set up routers to block out certain websites so that their kids would stay pure and honest.  Anyways, if all else is the same, and the variable is the router (home, school, friends house), then we have to blame the router. 

  • I have a MacBook White.  Everything worked great with Snow Leopard including Mathematica, and all Pogo games. I downloaded Lion two days ago and now neither program works.  The box states that I need J/Link, and/or java runtime.  Help.

    I have a MacBook White, early 2009 model, just downloaded/installed OS X Lion.  Everything worked well with Snow Leopard - Mathematica, pogo.com games. Now, with Lion, I am getting a box that states I need J/Link, and/or java runtime.  Software update feature states all software is up to date.  Help.

    StoneComputers wrote:
    What about the incredable lag time from clicking on a program to the time it opens (or the time till the loading screen starts)? I wish I could record it and play it so I could see if thats normal from other members... the icon just sitting there for over 35 second (I just counted 36 till the loading screen popped up) at first I thought it was me not clicking hard enought cuz the mouse button I have is real stiff (any ideas on that?) but no it takes that long just to get to the app loading screen... this happens every time same amount of time with the 3 programs I use the most, prolly more but I know for a fact world of warcraft, uTorrent, and Google Chrome. I would just chalk it up to slow hardware but they load real quick in windows 7 and once this bad spot is loaded the program runs so fast and nice afterword. Maybe some tweeks? I wonder if this would happen in Snow?
    The coment "few outdated programs" Ive seen alot its not just a few its a lot and since games are not Apple's strong point I would think they would want to keep as many as they could...
    An example of the rants you will see from a lot here. Don't be put off as these problems are generally user specific, and these same old comments come out after the release of every OSX I can remember. When Lion is upgraded  to the next OSX you can gaurentee these forums will be full of people screaming about how great Lion was. Happened with Tiger, Leopard and Snow Leopard.
    So come to think of it you may be better off Googling sites that give you unbiased views on Lion, rather than expect any positive comments here. For every one complaint there are probably 100,000 people with no issues.
    Cheers

  • JTable 's tableChanged() works differently in jdk1.2.2 and jdk1.3

    While updating the contents of the jtable I am using the following
    table.tableChanged(new TableModelEvent(model));
    table.repaint();
    In jdk1.2.2, this updates the contents and repaints the table without clearing the row selection
    But the same in jdk1.3 updates and repaints the table but clears the row selection.
    How can I overcome with problem.
    I also tried model.fireTableStructurChanged();
    along with this but it works in jdk1.2.2 and not in jdk1.3.
    Any suggestion is greatly appreciated.
    Thanks

    They have fixed a bug. If you are replacing the whole table, then the row selection for the old table doesn't mean anything for the new table. In fact, that row might not even exist any more.

  • Why does final keyword work differently with collection

    I have tried final on StringBuffer but when i changed the value of StringBuffer object its throws a compile time error but when i did same thing with vector it work perfectly fine.
    any one knows the reason? please send me in details.
    final Vector v = new Vector();
    v.add("String1");
    v.add("String2");
    final StringBuffer sb  = new StringBuffer();
    sb = sb.append("xyz");

    Because you haven't understood the keyword final. when you make a reference final you may not change the object to which it points to.
    final StringBuffer sb  = new StringBuffer();This is valid because this is the first time you instatiate sb
    sb = sb.append("xyz");this is invalid because you are trying to assign a new object to a reference that may only be assigned to once.
    Compare
    final int testInt = 1;
    testInt = 2; //errorthe vector works because you do not assign vector reference v a new Vector object

  • SWF Verification works differently with FAXS vs FMS

    Here's the setup: loader.swf loads up player.swf and player.swf then connects to the server to play the stream. In FMS-based SWF Verification, it'
    s the player.swf that gets verified.  However, if we change the above scenario where the player.swf obtains the license from FAXS and the license server sends a list of valid SWF hashes, it appears that verification is done on the loader.swf. That looks like a bug. Any suggestions ?
    Eli

    In FMS-based SWF verification, player.swf would be present on the FMS server, in order to perform the SWF verification.
    In Flash Access-based SWF verification, the Flash Access license specifies the SWF hash of the authorized SWF (loader.swf in this example). In order to play the content, the client will verify that the hash of the current SWF matches the SWF hash specified in the license. There are two ways to set the SWF whitelist in the license: 1) Specify the whitelist at the time you create the policy, or 2) The license server fills in the SWF whitelist at the time it issues the license. With Flash Access, there is an additional packaging step (to apply the policy and encrypt the content), and a license server must be deployed in order for the client to obtain a license. However, aside from disabling FMS SWF verification, no other changes on the CDN should be required to deliver the encrypted content through the CDN.

  • Combo box works differently with UDO

    Hi guys,
    I have created a combo box on a UDO. I am trying to catch the event of when a value is selected in the combo box, but it is not working as it should. I have used the same code on a simple form and it works. It doesn't work on the UDO however. Here is my code:
    I declare the combo box:
                oItem = oForm.Items.Add("CntDetails", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX);
                oItem.Left = 300;
                oItem.Width = 60;
                oItem.Top = 290;
                oItem.Height = 14;
                oItem.AffectsFormMode = true;
                oItem.FromPane = 1;
                oItem.ToPane = 1;
                oCombo = ((SAPbouiCOM.ComboBox)(oItem.Specific));
                oCombo.DataBind.SetBound(true, "@CENTRIX_OJEA", "U_CENTRIX_CntDetails");
                oCombo.ValidValues.Add("All", "All");
                oCombo.ValidValues.Add("None", "None");
                oCombo.ValidValues.Add("More", "More");
                oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index);
    The in the ItemEvent part I use this code:
            if (pVal.ItemUID == "CntDetails" && pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) && pVal.Before_Action == false)
                try
                    Globals.SBO_Application.MessageBox("test", 1, "OK", "Cancel", "");
                catch
                    Globals.SBO_Application.MessageBox("Error", 1, "OK", "Cancel", "");
    Am I doing something wrong?
    Thanks

    Hi Costas,
    Put a breakpoint in this line of code
    if (pVal.ItemUID == "CntDetails" && pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) && pVal.Before_Action == false)
    See if it is reached.
    Regards,
    Vítor Vieira

  • Windwos 8 wont let me connect to doamin but worked different with older os's

    Hi guys i keep getting this error when i connect to my domain. Sometimes it alomost lets me login to connect to it but then it says its invailid. The server is windows 2008r2 enterprise.
    The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "cjcdsb.com":
    The error was: "DNS name does not exist."
    (error code 0x0000232B RCODE_NAME_ERROR)
    The query was for the SRV record for _ldap._tcp.dc._msdcs.cjcdsb.com
    Common causes of this error include the following:
    - The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured
    to use DNS servers with the following IP addresses:
    192.168.0.101
    - One or more of the following zones do not include delegation to its child zone:
    cjcdsb.com
    com
    . (the root zone)
    Theres also an event id error 408 on dns?
    Thanks in advance for any help i can get with this

    Ok heres the problem computers ipconfig
       Host Name . . . . . . . . . . . . : Carter
       Primary Dns Suffix  . . . . . . . :
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : cgocable.net
                                           cjcdsb.com
       System Quarantine State . . . . . : Not Restricted
    Wireless LAN adapter Local Area Connection* 13:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft Hosted Network Virtual Adapte
       Physical Address. . . . . . . . . : B8-76-3F-95-AA-AC
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Bluetooth Network Connection:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network
       Physical Address. . . . . . . . . : B8-76-3F-95-AA-AC
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Wireless LAN adapter Local Area Connection* 11:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
       Physical Address. . . . . . . . . : B8-76-3F-95-AA-AD
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Ethernet:
       Connection-specific DNS Suffix  . : cjcdsb.com
       Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
       Physical Address. . . . . . . . . : 74-46-A0-84-45-D6
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       IPv6 Address. . . . . . . . . . . : 2001:1970:46c1:3201:718e:bfc3:a22e:8b21
    referred)
       Temporary IPv6 Address. . . . . . : 2001:1970:46c1:3201:d1f3:3f0d:ac36:c709
    referred)
       Link-local IPv6 Address . . . . . : fe80::718e:bfc3:a22e:8b21%14(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.0.106(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Lease Obtained. . . . . . . . . . : May 16, 2014 5:27:22 PM
       Lease Expires . . . . . . . . . . : May 24, 2014 10:56:43 AM
       Default Gateway . . . . . . . . . : fe80::cad3:a3ff:fe69:90c7%14
                                           192.168.0.1
       DHCP Server . . . . . . . . . . . : 192.168.0.1
       DHCPv6 IAID . . . . . . . . . . . : 376719008
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-E5-01-5B-74-46-A0-84-45-
       DNS Servers . . . . . . . . . . . : 2001:1970:c000::53
                                           192.168.0.101
       NetBIOS over Tcpip. . . . . . . . : Enabled
       Connection-specific DNS Suffix Search List :
                                           cgocable.net
                                           cjcdsb.com
    Wireless LAN adapter Wi-Fi:
       Connection-specific DNS Suffix  . : cjcdsb.com
       Description . . . . . . . . . . . : Ralink RT3290 802.11bgn Wi-Fi Adapter
       Physical Address. . . . . . . . . : B8-76-3F-95-AA-AB
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       IPv6 Address. . . . . . . . . . . : 2001:1970:46c1:3201:4936:2897:c3bc:427c
    referred)
       Temporary IPv6 Address. . . . . . : 2001:1970:46c1:3201:9111:3b66:e21d:f289
    referred)
       Link-local IPv6 Address . . . . . : fe80::4936:2897:c3bc:427c%13(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.0.110(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Lease Obtained. . . . . . . . . . : May 16, 2014 5:34:49 PM
       Lease Expires . . . . . . . . . . : May 24, 2014 10:12:33 AM
       Default Gateway . . . . . . . . . : fe80::cad3:a3ff:fe69:90c7%13
                                           192.168.0.1
       DHCP Server . . . . . . . . . . . : 192.168.0.1
       DHCPv6 IAID . . . . . . . . . . . : 213415487
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-E5-01-5B-74-46-A0-84-45-
       DNS Servers . . . . . . . . . . . : 2001:1970:c000::53
                                           192.168.0.101
       NetBIOS over Tcpip. . . . . . . . : Enabled
       Connection-specific DNS Suffix Search List :
                                           cgocable.net
                                           cjcdsb.com
    Ethernet adapter VMware Network Adapter VMnet1:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMn
    1
       Physical Address. . . . . . . . . : 00-50-56-C0-00-01
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::fc72:d546:af42:f3fa%43(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.64.1(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . :
       DHCPv6 IAID . . . . . . . . . . . : 956321878
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-E5-01-5B-74-46-A0-84-45-
       DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Ethernet adapter VMware Network Adapter VMnet8:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMn
    8
       Physical Address. . . . . . . . . : 00-50-56-C0-00-08
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::7c76:51d8:be61:29b1%44(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.209.1(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . :
       DHCPv6 IAID . . . . . . . . . . . : 973099094
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-E5-01-5B-74-46-A0-84-45-
       DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter Teredo Tunneling Pseudo-Interface:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter isatap.{F0D28F40-B52E-40A5-80EB-A3B500B58A67}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter isatap.{3DB9FB12-7DDF-4C1D-893A-FDC2E5176EF4}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter #7
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter isatap.cjcdsb.com:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . : cjcdsb.com
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter #10
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes

  • Behavior work differently with SimpleUniverse

    I initially created an application using the SimpleUniverse utility. I add a behavior one of my transform groups so that an object would change orientation on a button click.
    I then switched over to a regular Universe and constructed my own viewing branch. Now the behavior will NOT work although it did before.
    Can anyone help me and let me know what I'm missing?
    Thanks in advance.
    Here is my buildViewBranch code: and below is the code for the Canvas3D
    public BranchGroup buildViewBranch() {
              BranchGroup viewBranch = new BranchGroup();
              TransformGroup vpTrans = new TransformGroup();
              view = new View();
              ViewPlatform vipl = new ViewPlatform();
              PhysicalBody pb = new PhysicalBody();
              PhysicalEnvironment pe = new PhysicalEnvironment();
              //Attach elements of the view
              view.attachViewPlatform(vipl);
              view.setPhysicalBody(pb);
              view.setPhysicalEnvironment(pe);
              view.addCanvas3D(canv);
              vpTrans.addChild(vipl);
              view.setFieldOfView(field_of_view);// degrees for a distance of meters
              //This matrix places the camera on the +z axis looking towards the origin
              Matrix4f v_mat = new Matrix4f( 1f, 0,0,0f,
                                                      0,1f,0,0f,
                                                      0,0,1f,7f,
                                                      0,0,0,1f);
              Transform3D shiftV = new Transform3D();
              shiftV.set(v_mat);
              vpTrans.setTransform(shiftV);
              view.startView();
              view.startBehaviorScheduler();
              System.out.println("Behavior running: " + view.isBehaviorSchedulerRunning());
              viewBranch.addChild(vpTrans);
              return viewBranch;
    Here is the Canv initiation that I use:
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
              GraphicsDevice[] gs = ge.getScreenDevices();
              //Creates a graphics template to pole the monitor for the best configuration
         GraphicsConfigTemplate3D gct3d = new GraphicsConfigTemplate3D();
              //gct3d.setStereo(GraphicsConfigTemplate.PREFERRED);
              gct3d.setSceneAntialiasing(GraphicsConfigTemplate.UNNECESSARY);
              //The best graphic configuration is obtained for device 0 as this device is usually the
              //main monitor
              java.awt.GraphicsConfiguration config = gs[0].getBestConfiguration(gct3d);
         canv = new Canvas3D(config);

    I now have a better idea of what's going wrong. When I run the function
    view.isBehaviorSchedulerRunning()
    I get false before and after I run the function
    view.startBehaviorScheduler();
    What do I do? I need help. I would greatly any suggestions.
    What do I need to do to get the behavior scheduler working right?
    Kitcrew

Maybe you are looking for