32bit java on 64bit arch

Hi,
I have 64bit archlinux. I have installed eclipse and openjdk from repository so both are 64bit version. But I need 32bit version of java for actual job. So i downloaded it from oracle's web. Now I have two java on my arch (./usr/lib/jvm/java-6-openjdk - 64bit and /opt/java/jdk1.6.0_34/ - 32bit). When I changed $JAVA_HOME to  32bit version, eclipse didnt works. So I change $JAVA_HOME back to 64bit.
And my question. If I add new (32bit) java virtual machine to eclipse and select it for use, will be this 32bit version used for programing?
And what about maven? We use maven for build project. Can I set it to use 32bit java?
Thanks
Last edited by funny (2012-08-15 11:52:52)

you can create a script that wrapps maven with 32 bit java
Call it sth like mvn32 , put this to your $HOME/bin direcotry  and insert following:
#!/bin/sh
export JAVACMD=/path/to/java-32/bin/java
#or
#export JAVA_HOME=/path/to/java-32/
mvn $*
Then you call mvn with mvn32 clean install for example.
When name this scipt mvn and ensure that $HOME/bin is the first entry in your $PATH variable this scipt will be excuted as first when you call mvn
An other alternative is  edit  /opt/maven/bin/mvn
and adjust the JAVA_HOME Variable to your 32 bit jdk-
Framas

Similar Messages

  • Unable to install 32bit libs on 64bit Arch

    Hi everyone,
    I have been trying to install 32bit packages on my 64bit Archlinux.But when ever I issue a command eg:Pacman -S  lib32-glibc I get an error "Target not found".I have enabled the
    [multi-lib] respository.I know that it shouldn't be a problem once you enable the respository.I must be missing out something here.I have searched for lib32 packages with the command "pacman -Qs lib32" but all in vain, there aren't lib32 libraries installed :-(.
    Any help will be appreciated.
    Thanks

    Please note this pacman.conf file.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    #GPGDir = /etc/pacman.d/gnupg/
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #UseDelta
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # PGP signature checking
    # NOTE: None of this will work without running `pacman-key --init` first.
    # The compiled in default is equivalent to the following line. This requires
    # you to locally sign and trust packager keys using `pacman-key` for them to be
    # considered valid.
    #SigLevel = Optional TrustedOnly
    # If you wish to check signatures but avoid local sign and trust issues, use
    # the following line. This will treat any key imported into pacman's keyring as
    # trusted.
    SigLevel = Optional TrustAll
    # For now, off by default unless you read the above.
    #SigLevel = Never
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [core]
    #SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    [extra]
    #SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [community]
    #SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    #[multilib]
    #SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs

  • 32bit Java on 64bit RHEL OS

    Question:
    Does anyone know definitively if Sun Java *32bit* JRE is supported by RedHat. The configuration is RHEL 4.6 *64bit* environment… (I do know configuration will work)
    If so can you point me to some documentation I can download or a website I can go to… Thank you
    Edited by: app1mvf on Sep 29, 2009 7:13 AM

    app1mvf wrote:
    Question:
    Does anyone know definitively if Sun Java *32bit* JRE is supported by RedHat. The configuration is RHEL 4.6 *64bit* environment… (I do know configuration will work)Supported by RedHat?
    Do you not mean does Sun support running the Sun JRE on RedHat?
    If so can you point me to some documentation I can download or a website I can go to… Thank youI can explain where I went to find out;
    [http://java.com/|http://java.com/]
    [http://java.com/en/download/manual.jsp|http://java.com/en/download/manual.jsp]
    [http://java.com/en/download/help/5000010500.xml#rpm|http://java.com/en/download/help/5000010500.xml#rpm]
    says
    Platform(s): Red Hat Linux , SUSE Linux , JDS

  • Can I run a 4-arch binary as 32bits on a 64bit Mac?

    I created a 4-arch executable (ppc/intel & 32/64bits). On a 64bit Mac it runs as a 64bit program. On a 32bit Mac it runs as 32bits. I would like to force it to run as 32bits on a 64bit Mac, without stripping out the 64bit architectures. (some seldom-used plugins for the program can only be built 32bits on OSX)
    64/32 bit OSX applications have a checkbox in Get info to open in 32bit mode, but CLI executables don't have this option.
    Can this be done?

    If you using Leopard, look at the 'arch' command. It has been enhanced to allow you to change the search order for the universal programs. They also talk about using it to set up the specific type through an arch command. I could not find where they are keeping the search order yet and personally have not used 'arch' in this manner.
    The man page for Tiger does not mention this functionality. So, I assume that it is not in Tiger. You might get further explanation from my message:

  • Turning Arch Linux 32bit (i686) to 64bit (x86_64)

    I installed Arch Linux on a pc that was only 32bit compatible and I want to put it into my pc that is 64bit compatible. Is there a way to turn the current 32bit Arch Linux to 64bit Arch Linux (I don't care if it is untested or if there's a possibility of damaging the OS or Computer)
    Last edited by Satanic Command Line (2015-01-07 01:46:22)

    (http://www.bing.com/searchq=Is+there+a+ … 0393fd158b) Doesn't show anything about migrating from 32 to 64bit without reinstalling (I use bing not google)

  • [SOLVED]Compiling 32bit C programs on a 64bit arch

    Hi guys, for the first time I decided to use 64bit arch on my machine and so far no complains (I don't think there will ever be). I'm a student of computer engineering  and I use C to code some projects but I haven't found a way to compile 32bit programs on my 64bit arch. Everybody says "just add -m32 flag to the compile step" but I think this is not all I have to do (it doesn't work if I just do that).
    To prove it I have created a simple "hello world" in C:
    #include <stdio.h>
    int main(){
    printf("Hello, World");
    return 0;
    When I try to compile it, I just run
    gcc -m32 hello.c -o hello
    But all I get is
    In file included from /usr/include/features.h:399:0,
    from /usr/include/stdio.h:27,
    from test.c:1:
    /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
    compile finish
    Needless to say it doesn't create the hello executable. Is there some packages I have to install in order to have this happen?
    Last edited by xangelux (2012-07-25 00:24:40)

    xangelux wrote:/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
    Well, you could see that something "-32" is missing so you are searching for 32 bit stuff that is not installed.
    There's a tool called pkgfile which searches in the repository database for a file name and tells you which package it is in.
    In this case, stubs-32.h
    ~ % pkgfile stubs-32.h
    multilib/lib32-glibc
    Maybe another helpful article: https://wiki.archlinux.org/index.php/Ar … ib_Project

  • QT 32bit on 64bit arch

    I want to develope a QT based application for android using a 64bit archlinux. I also want to test it on 64bit archlinux. The problem is, that i have to use a library which i have for android and for 32bit linux only. So i need a 32bit QT for 64bit archlinux to build and test the application on my pc.
    I have installed QT for android from aur, but i can't find it for 32bit on 64bit archlinux.
    (Because i want to develope an android application i need a QT version >=5.1)
    I tried to compile Qt from source with this configuration
    ./configure -platform linux-g++-64 -xplatform linux-g++-32
    But it doesn't work. I also tried to export this before compiling:
    CFLAGS = -m32
    CXXFLAGS = -m32
    LFLAGS = -m32
    But it doesn't helped. Qtcreator says, that i have a 32bit compiler(gcc) so that should not be the problem.
    I tried a chroot as well like this https://wiki.archlinux.org/index.php/In … _in_Arch64 , but when i try to install qt i get the error that it is for the wrong Architekture. I can't install some packages. Some other are working.
    I just started learning c++ and QT(but i have experience with c and i'm a java developer). So is there a way to get this working? Or do i have to install a 32bit archlinux for this?
    Thanks for reply
    Last edited by Algor88 (2013-04-20 13:22:27)

    I had a problem compiling my qt programs until I found this http://www.spinics.net/lists/gcchelp/msg36767.html which basically tells you to install gcc-multilib. If you don't have gcc-multilib installed it probably just ignores the -m32 flag.

  • Running 32bit pbsetup on 64bit l

    I need to run the 32bit version of pbsetup on 64bit arch linux because the game I want is not on the 64bit version.
    When I try to run the 32bit version I get this error message
    ./pbsetup.run: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64
    I tried installing lib32-libgtk but there's no such thing. WHat do I do?

    http://wiki.archlinux.org/index.php/Cur … velopement

  • Install oracle 10g (32bits) on windows (64bits)

    hi,
    Have anyone tried installing oracle10g 32bits on windows 64bits platform before? Will it cause any problems and what are the drawbacks?
    Thanks

    hi,
    Have anyone tried installing oracle10g 32bits on windows 64bits platform before? Will it cause any problems and what are the drawbacks?
    Thanks

  • .xlsm File use from Excel 2013 64bit/Win7 64bit to Excel 2013 32bit/Win8.1 64bit - Component Removed (not API related)

    Work Environment:  Excel 2013 64bit/Win7 64bit
    Home Environment: Excel 2013 32bit/Win8.1 64bit (1 desktop and 1 laptop)
    I am developing an an .xlsm file at work (with Lists and a single form with controls linked to a worksheet ControlSource). It works and saves all day long just fine in my work environment. I save the file to either a USB drive (or DropBox - makes no difference)
    and then open the file on my home computer. I can open the file the first time with no problem and with no error messages. But then when I try to save the file Excel 2013 32bit most often tells me that it has removed a component. But it doesn't tell which
    component it has removed. After that, if I close the file and try to reopen it, it won't reopen. I get a series of error message: [1] file path errors (error 75) [2] Excel has stopped working errors. [3] Excel hasn't enough memory to complete the operation,
    [4] Excel will close. So I click the close button on the last error message and Excel disappears. I say disappears, because its not really gone. Mind you, its not listed in the Task Manager at this point. But, if I then click the Windows Taskbar icon to start
    Excel, Excel will sometimes automatically open up with the file that I was trying to open before, already up and running, i.e. I do not select the file to open it - it just appears. Other time Excel just repeats the series of error messages noted above.
    The strange part is, once this file has been corrupted, I can still take it back to my work environment, fire it up on my work computer, and it works just fine. No error messages, no saving problems.
    I have totally uninstalled and reinstalled Office 2013 (HUP Click to Run) on both my home computers and it makes no difference.
    I can say though, this is driving me nuts. Anyone have any suggestions or ideas?
    phillfri

    I think I solved the issue.
    Step 1: Moved all my code from the Worksheet_Open event to the Auto_Open Macro.
    Result: File would open from inside Excel but when opening by clicking on the file in Windows explorer I would get the error msg "There was a problem sending a command to the program."
    Step 2: Apply FixIt 20074. Note that to get this FixIt to work in Windows 8.1 you MUST save the FixIt file to your desktop and run it from there. If you follow the instructions on the FixIt page - download and run - you will get the error msg "This Fixit
    does not apply because the computer does not have the expected software (Excel.exe)."
    Excel 2013 definitely seems to have some bugs when starting a macro enabled file. I have seen other comments on the internet about the Excel workbook_open event actually failing to run all the VBA commands that are put into it.
    Environments:
    [1] Home: Microsoft HUP Click-n-Run Office Professional 2013; Windows 8.1, 64 bit; Excel 2013, 32 bit.
    [2] Work: Enterprise Microsoft Office Professional 2013; Windows 7, 64 bit; Excel 2013, 64 bit.
    phillfri

  • How to make LR 2.4 open to CS4 32bit instead of 64bit

    I recently upgraded my OS from Vista 32bit to Vista 64bit. I had no problems installing the CS4 Production bundle as well as Lightroom 2.4. A bit of a hitch installing a couple of plugin in CS4 64bit so I need to use 32bit, which is a bummer, but still acceptable. What i'm trying to figure out is, how do I let LR 2.4 "Edit in Photoshop" and more importantly "Open as Smart Object" in Photoshop CS4 32bit instead of 64bit by default?

    I believe the way to do this is to start the 32-bit Photoshop binary before you call "Edit in PS". Lightroom will automatically use the open version and not start the 64-bit version if the other is running.

  • Migrate 32bits 10gDB to 64bits 10gDB for Window Platform

    Hi,
    Can you advise questions concerning 64bits Oracle 10g running on Window 64bits machine.
    1) Is there any matrix to show servers certified for 64bits Oracle 10g
    2) Any performance benchmark done for 64bits Oracle. Performance comparision between 32bits and 64bits
    3) What is the certified window OS to run 64bits Oracle 10g? Will Window 2008 improve performance?
    4) Any document to perform migration from 32bits 10gdb to 64bits 10gdb on window.
    5) Is it possible to run 64bits 10gdb on 32bits machine? Let's production server is 64bits machine with 64bits oracle database software and UAT server is running on 32bits machine with 32bits oracle database software. Can we restore production 63bitsdb to UAT server? If can, how?
    6) What is the known issue for oracle running on 64bits?
    7) What is the benefit of 64bits Oracle database?
    8) Any program/configuration needs to be changed to take advantage of the benefits?
    Thank You.
    Regards,
    Kelly

    Hi,
    1) Is there any matrix to show servers certified for 64bits Oracle 10g?All most all 64-bit server platforms support oracle database 10g *(Intel, AMD, Itanium)*
    2) Any performance benchmark done for 64bits Oracle. Performance comparision between 32bits and 64bitswww.dell.com/downloads/.../oracle_performance_em64t_6850.pdf
    www.oracle.com/.../oracle_database_11g_architecture_on_windows_twp.pdf
    3) What is the certified window OS to run 64bits Oracle 10g? Will Window 2008 improve performance?Yes both windows 2003 and 2008 are now certified with oracle database 10g please refer tech note * 740926.1 Where can I find the Database / Client software to download for Microsoft Vista, or Windows 2008?*
    https://support.oracle.com/CSP/main/article?cmd=show&id=740926.1&type=NOT
    About 2008 I am not sure will it improve your performance or not.
    4) Any document to perform migration from 32bits 10gdb to 64bits 10gdb on window.Please refer tech note: *62290.1 Changing between 32-bit and 64-bit Word Sizes*
    5) Is it possible to run 64bits 10gdb on 32bits machine? Let's production server is 64bits machine with 64bits oracle database software and UAT server is running on 32bits machine with 32bits oracle database software. Can we restore production 63bitsdb to UAT server? If can, how?Database 10g is 64 bit software you can keep your production database on any of the 32-bit machine. I dont think there will be no issues.
    IF can, how?It depends upon your policies, whether u are restoring complete cold backup, export/import, rman TTS.
    6) What is the known issue for oracle running on 64bits?I dont find any issues oracle databases running on 64-bit. Oracle database software itself is a 64-bit software.
    Also refer:
    7) What is the benefit of 64bits Oracle database?http://www.oracle.com/partnerships/hw/amd/amd_faq.html
    http://assets.devx.com/intel/14349.pdf
    8) Any program/configuration needs to be changed to take advantage of the benefits?Refer tech note *332889.1 Oracle Database 10g Migration/Upgrade: Known Issues and Best Practices with Self-Managing Database*
    Regards,
    X A H E E R

  • I'm running Firefox 32bit on aWIN7 64bit laptop - Firefox freezes up, usually at high capacity, accumulates something on average of 500,000K to @900,000K average (2+ times per session)

    I'm running Firefox 32bit on aWIN7 64bit laptop - Firefox freezes up, usually at high capacity, accumulates something on average of 500,000K to @900,000K average (2+ times per session)

  • Wine on 64bit Arch?

    As the title implies, has anyone successfully installed Wine on 64bit Arch?

    gs wrote:su gs
    /home/gs/bin/ie6
    any hints for getting ie6 installed under wine? do you have to install a 32-bit copy of xorg and all that crap? i tried running ie6setup.exe and got this:
    $ wine ie6*
    wine: creating configuration directory '/home/karsten/.wine'...
    Wine cannot find the FreeType font library. To enable Wine to
    use TrueType fonts please install a version of FreeType greater than
    or equal to 2.0.5.
    http://www.freetype.org
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Wine cannot find the FreeType font library. To enable Wine to
    use TrueType fonts please install a version of FreeType greater than
    or equal to 2.0.5.
    http://www.freetype.org
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Application tried to create a window, but no driver could be loaded.
    Make sure that your X server is running and that $DISPLAY is set correctly.
    Application tried to create a window, but no driver could be loaded.
    Make sure that your X server is running and that $DISPLAY is set correctly.
    err:imagelist:ImageList_ReplaceIcon no color!
    edit-- HAHA nevermind-- was looking for .xauthority to copy over to the new ~ dir instead of .Xauthority doh

  • Removing 32bit and installing 64bit photoshop and premiere elements v12

    I downloaded 32bit instead of 64bit, how do I now download the 64bit version using the same serial purchase number?

    the 64 and 32 bits both download and install when you use a 64 bit system.  check your 64bit directory.

Maybe you are looking for