Linking libjava.jnilib on Mac OS 10.4

I'm having a very simple problem and am unfortunately very new to
Mac, Java, and JNI.
I'm trying to compile a simple example I found from a Sun tutorial,
with a few tweaks for Mac OS 10.4.
The problem I'm having is that I can't link to libjava.jnilib.
g++ -I/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Headers/ -L/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/ -ljava invoke.cxx
/usr/bin/ld: can't locate file for: -ljava
collect2: ld returned 1 exit status
make: *** [default] Error 1
The library exists, but only as a .jnilib and not a .dylib.
$ ls -l /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jnilib
-rwxr-xr-x 1 root wheel 318488 Nov 15 22:31 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jnilib
Any help would be greatly appreciated.
Thanks,
Alex.

mathos2 wrote:
JDIC seems to me a little complicated, just to open a pdf file, Why do you think this? Sure it does more than just what you want, but so what, that does not make you code any more complicated. It would just be a call to org.jdesktop.jdic.desktop.Desktop.open
and Desktop.open is a methos in jvm 1.6. The Desktop.open in 1.6 is taken from JDIC.
Isn't there a simple way like in windows Why is that simple in your eyes? You would have to create a version for every supported OS, using existing code (like say JDIC) you can let someone else do the complex part.

Similar Messages

  • My macbook pro was stolen. How can I make sure that the one that is linked to find my mac is this one and not an older computer.  Is there a way of seeing the serial number for the computer that is linked to find my mac?

    Is there a way to see serial number of computer that is linked to find my mac?

    No.
    Barry

  • I have a new Mac Pro.  I want to use my old Mac Pro as a storage drive for photos and old documents, linked to my new Mac Pro.  How do I set up the old computer?

    I have a new Mac Pro.  I want to use my old Mac Pro as a storage drive for photos and old documents, linked to my new Mac Pro.  How do I set up the old computer?  Both computers have OS X10.9.3.  Currently they are connected by a Firewire 800 cable.

    You certainly could keep the old Mac Pro in Firewire mode (hold down the T key on its keyboard as you boot) to show its drives on the new MP. This is basically as fast as putting the drives into a Firewire enclosure.
    Or you could boot it normally and share its files over the network using the Sharing panel of System Preferences. If you turn on both File and Screen Sharing, you don't even need to have a monitor attached - you can do all administration using screen sharing. However, this method requires that you open all files over the network, which will be slower than the direct-connect method above, and may also not work with all applications.
    Matt

  • We can't package links after updating to Mac 10.9.2

    We can't package links after updating to Mac 10.9.2

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Click the Show Detail button. A drawer opens. Try to send a message and post the text that appears. Anonymize any personal information before posting.

  • Where is the redeem Quick Links section of the Mac App Store?

    where is the redeem Quick Links section of the Mac App Store whe trying to download OS X mountain lion?

    Yep, I'm clueless again. You have to click on the "A" App Store icon on your Mac to get to the App Store. I had thought that I could get to the App Store thru the Apple Store. Silly me. I had to go to the local Apple Store to get some guidance.
    The App Store icon should be in your toolbar at the bottom of your screen or you should be able to find it somewhere on your Mac. Then I tried clicking on Purchases like the Apple store guy said but my Lion purchase didn't show up there. Then I tried Categories and found Redeem there and maybe downloaded Lion for my old MacBook there but I haven't found it on my MacBook yet, so will have to do some searching. Oh, I had to go back to Purchases to do the download although the Redeem page said it was downloading Lion. Supposedly downloading now. Very annoying, this process is. Even Mickysoft seems easier to update.

  • How do you link hotmail calendars to mac?

    how do you link hotmail calendars to mac?

    Hi there Janevl,
    You may find the information in the article below helpful.
    Configuring Mail for your email account
    http://support.apple.com/kb/ht1277
    -Griff W. 

  • Photosmart D110a Wireless Troubleshooting with D-Link DIR-655 and Mac OSX 10.8

    Good evening all,
    Apologizes if this has already been posted. I've googled this issue a couple of times, but I still haven't found a solution for this problem.
    I have the Photosmart D110a and I'm running Mac OSX Mountain Lion, and my router is a D-Link DIR-655 and my security is WPA-Personal and the router is running in 802.11gn mode. My ISP is Optimum Online.
    The issue that I've been having is that the printer works wireless when everything has been recently booted up. As does the scanner. However, if it hasnt been used for a while, the printer shows up in the OSX Print & Scan settings page as idle, but when I try to print, the dialog just says "looking for printer" and never finds it, and just says "The printer is not connected" under the item in the OSX Print Queue. Because of this, I have to restart the computer or restart the printer for them to find each other again. 
    I've seen other solutions on here, such as giving the printer a static IP address, and this hasn't worked either. The printer is still accessible with the static IP address, which means it's still got a connection to my network, but for some reason the OS isn't recognizing it or something. 
    It's obvious that the printer works when everything is freshly rebooted, but I still haven't been able to figure out this issue once it's been idle for a while.
    Any help would be greatly appreciated!!
    Errold

    Hi,
    Try following my post below, I believe it might be relevant as the router drops the Bonjour connection:
    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/losing-connection-to-airprint-a-few-min...
    I would also suggest updating your router's firmware and check if that may help:
    http://www.dlink.com/us/en/support/product/dir-655-wireless-n-gigabit-router
    For any help with this proccess I would highly recommend contacting Dlink support.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do you duplicate a PDF fill in form page, WITHOUT linking the text (for MAC)???  That is, while still being able to type different things into the blanks on the duplicate pages?

    The Situation (again, I have a Mac):  I am filling out a 5 job application- it is PDF format, with questions, and fill in the blanks for your information- such as name, date, and employment history.  Page 3, is the page used for employment history.  But, there is only room for two jobs on page 3.  The instructions tell you, you can "have as many page three's" as you want.  In my case, I will be putting 8 jobs- at two jobs per page, that is a total of 4 page three's.   I already know how to duplicate a PDF page, simply by opening the thumbnail viewer on the side, holding down the "alt" key, and clicking and dragging the desired page to create a duplicate.  So what is the problem??? When you duplicate the page, the boxes into which you type, are linked.  So if on the original, you type "Job A", into the experience box, it forces the same answer on the duplicate page, making it impossible to describe different positions!!!!  Is there a way to work around that? Thank you!!!!!

    You're probably using Acrobat if you can duplicate pages like that. This is the Adobe Reader forum...
    To answer your question, though: The only way this can be done automatically, without having to manually rename each field, is to use a Template to spawn new pages. This is something the form's author should have done, but you can do it yourself as well, using some code.

  • Solve the JavaFX crashing issue (libjogl.jnilib) on Mac Snow Leopard

    This is what happening to me and how did it get fixed.
    This issue concerns running JavaFX programs on Mac machines with Snow Leopard installed.
    Here is the story.
    I have two Mac machines: one is MacBook and the other is [Mac mini|http://www.apple-history.com/body.php?page=gallery&model=mac_mini_early_09&sort=date&performa=off&order=ASC]. Before I installed Snow Leopard, JavaFX programs were good at both machines. After upgrading to Snow Leopard, every JavaFX program on my MacBook crashed with messages saying that "libjogl.jnilib" causing an bad memory access. But they are still all good on my Mac mini. It's very annoying because if I accidentally went to a page with JavaFX applets on it, Safari got killed.
    I think there might be something wrong in my MacBook so I backup my data and did a clean install of Snow Leopard. Things remain unchanged. It still crashes all the time. Can't figure out why.
    So, I decided to get rid of the cause directly. I tried to search "libjogl.jnilib" on the disk but found that it is downloaded by need (one of the Java Web Start mechanisms), not a pre-existing file in the system. That is why reinstalling the system did not help.
    Then I went to the JOGL sample page, running a few samples through Java Web Start. They are good on my MacBook! So I compared the .jnlp files of the problematic JavaFX programs and JOGL samples. I found that if I put
    <extension name="jogl-all-awt" href="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-all-awt.jnlp" />in the .jnlp files of JavaFX programs, they will get healthy "libjogl.jnilib" and run good. Hooray!
    But I can't intervene in every JavaFX execution this way. So I download the latest JOGL binary, put them (.jar and .jnilib files) under "/System/Library/Java/Extensions/". Everything is fine now.

    kmacdona wrote:
    Do we know who is responsible for patching this for end users? i.e. does Apple need to push this in a system update?
    Thanks,
    KeithI believe if something needs to be done, Mike will do it. He is very active in Apple's Java forum and after all he is the guy in Apple.
    I am still wondering why JavaFX is okay on my Mac mini. Maybe what happened to my MacBook is an extremely corner case because I can hardly find any other one seeing the same problem when I tried to google "crash", "libjogl.jnilib", "javafx", such keywords.

  • Unable to edit link in Contribute CS5 (mac)

    I am trying to edit a webpage in Contribute.  I create a draft of my homepage, and I am trying to edit one of the links.  However, other than a small text box, the mouse pointer is a circle with a slash through it, and thus I can't edit the link I need to edit.  This is Contribute CS5 on a Mac.  Any ideas?

    Did you create the site?
    It sounds like the site was built using templates and contains uneditable regions or it's within an include file (or a few other possibilities). Do you have a link to the page that you can't edit the link on?
    If so, provide a link to that page and let us know what link you can't edit and we can look.

  • How do you upgrade TP Link w8960N on a mac

    Is anyone else having this problem? I bought a TP Link w8960n modem/router version 3, but every now and then my Time Capsule drops its signal. I am trying to upgrade the TP Link's firmware through its website which clearly states Mac users are supported. However, having successfully downloaded the software, I cannot find an app that opens it. I contacted TP Link and they suggested updated firmware via Windows which I have also tried to no avail through Bootcamp on my Macbook Pro. I have been wrestling with this problem for months now. Can anyone help, please?

    To update the router you do that from the Router Setup pages. Open a Web browser and type in the IP address of the router and Log in to it, Username (If needed) and main Router password. Once logged in go to the system pages (or something like that. I don't know TP Link pages) and there should be a section to Update Firmware and a button to point it to that file you downloaded from their site.
    Basically only the Router can Read that file, and or only the router Needs to read that file. Opening it on your computer isn't needed nor will that update the router.
    It is all done On the Router.

  • Linking Thunderbolt Display to Mac Mini AppleCare

    I've Recently Purchased a 2012 Mac Mini and A Thunderbolt Display. i also Bought AppleCare for the Mac Mini as well.
    When i go to register the AppleCare to the Product, it gives me the option to Link a Display to it, but when i try to input the Thunderbolt Display's Serial# and go to the next step, it says that it is invalid.
    What could Be the Problem? they were purchased on the same day...

    Give AppleCare a call - 1-800-275-2273.
    I didn't have any problems registering my products with the AppleCare that I purchased.
    Clinton

  • Link DIR's in MAC

    Greetings,
    I'm not a wiz on code, but I try and I need some help please.
    I'm building a hybrid CD to play on both PC & MAC and
    some of my links will open a new Director movie located in a
    subfolder.
    When I publish for both PC & MAC it works fine on a PC,
    but when I open the initial OSX file on the MAC machine, the links
    to other Director OSX file won't open because the MAC is looking
    for an OSX extension. .
    Can I add anything to my code below which will open a
    Director EXE file on a PC or a Director OSX file on a MAC?
    on mouseUp me
    global gDelimiter
    myFolderName="vid"
    myPDFName="instructions.exe"
    myTempPath=_movie.path&myFolderName&gDelimiter&myPDFName
    baOpenFile(myTempPath, "normal")
    end
    THANK YOU,
    Bob

    Hello Sean,
    The bottom line is when I click on a button I want it to open
    another director movie. When I build the link on the button, I'm
    telling it to open the director movie instructions.exe, and that
    works fine on a PC. The problem I'm running into is when I publish
    the project for playing on both PC and MAC. The button with the
    link is looking for the instructions.exe file and when played on a
    Mac, the file is changed to instructions.osx, therefore the link
    will not work as it's looking for the .exe extension not the .osx
    extension you use for a MAC.
    Is there a way you can include both the .exe and .osx
    extenions within the lingo of the button or another way to do this?
    I know the code I'm using now shows PDF, but it's just
    something I copied and seems to work in a PC environment. As I
    mentioned, I'm not a code wiz like most folks, so I'll copy
    something from the forums, modify and test. If it works, I'll use
    it.
    I appreciate any help you can throw my way.
    Thanks,
    Bob

  • Messages: Broken links when sending from Mac to iOS

    If I copy a link from Safari (right-click > Copy link) and send it with Messages on Mac it remains a clickable link with a link text (in the chat window).
    The problem is if the recipient uses Messages on iOS he will only see the link text and cannot click on the link.
    Is there a solution to this annoying bug?
    The workaround I use is:
    Copy the link from the clipboard into the chat input box. BEFORE sending rightclick on the link > "Copy link" and then insert from the clipboard again. This way you get the URL of the link which is always clickable (on Mac AND iOS).

    Hi,
    Over the years the various messaging services that there are have all done things related to sending Links with words as Hyperlinks.
    The AIM service in particular had a very bad time with people putting malicious code in the link instead of just the URL.
    The matter can be confused when some URLs are very long such as News websites and the like.
    I use the same workaround as you (Send plain text URLs)
    9:26 pm      Monday; January 6, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • The direct link to the actual mac version of the free open office software

    I found a page for open office downloads, but they just lead me to a page with a windows version download, is there really a mac version for macs? & can someone give me a direct link to the actual download?
    this is the final download page I am taken to; http://download.openoffice.org/
    but there does not seem to be any mac version.

    http://download.services.openoffice.org/files/stable/3.2.1/OOo3.2.1_MacOS_x86_installen-US.dmg

Maybe you are looking for

  • Duel System Adapter + MacBook Pro = Kernel Panic?

    I was on set for a P2 shoot as the "P2 Dumper" a few days ago. Cards where all ranges of sizes (4GB to 32GB) offloaded to my MacBook Pro via a Duel Systems Adapter. The MBP was purchased brand new on Sunday (2.5 Ghz 15"; so 10.5.2 & QT 7.4.1 were pre

  • Converting the Opaque Element into Readable format.

    Hi, Right now, I am using the FTP adapter to continously poll for a new file. Whenever new file comes in, our BPEL process gets initiated. We get the contents of the file in the variable of opaque element( I have given Message Schema is Opaque in the

  • Mass Loading of documents on Easy DMS

    Hi SAP DMS We need to load 17 000 documents on SAP Easy DMS, Is there a mass upload functionality that we can use and What is the maximum  number of documents can we drag and drop if the mass upload functionality is not available on Easy DMS? Thanks

  • How to make Custom Discoverer workbook use Custom Security profile of Apps

    We use Discoverer in Oracle Apps setup. We have added Custom security in our HR People Form of Apps. This Custom Security restricts one HR Emplpoyee not view other HR employee record except for himself/herself. Also maintining that they should be abl

  • Add items in jlist

    hi im a bit confused as to how to add items to a jlist during runtime could someone please show an example