Ubuntu :: Cannot Compile Java-based Packages In R

Jun 8, 2010

I'm trying to compile JGR, rJava, etc. for use w/ my updated R. My configuration of Ubuntu (9.10 Karmic, kernel 2.6.31-22-generic) and R (version 2.11.1; from lib.stat.cmu.edu source) shouldn't be terribly unusual. But, all my efforts to compile Java programs for R fail, possibly because of something in my Ubuntu configuration of Java.First, I ran: R CMD javareconf. The output from that tells me that "JAVA_HOME is not a valid path, ignoring" and the cpp flags are set to nothing. The javareconf fills most of the variables with references to openjdk. JAVA_HOME, as far as I can tell, points to a properly installed copy of Sun Java. When I run update.packages(checkBuilt=T) with this, it unsurprisingly tells me that "One or more Java configuration variables are not set" and all of my Java based programs fail to compile.

I've tried switching the default Java to the Sun version using "sudo update-alternatives --config java". Now, javareconf fills in the cpp flag and variables point to the Sun version, though I still get the error msg that JAVA_HOME is not a valid path (though javareconf sets the home path to: /usr/lib/jvm/java-6-sun-1.6.0.20/jre). When I try to compile rJava, I get the error: rJava, "JNI types differ from the native type."Does anyone have any thoughts on how to fix this? Alternatively, is there somewhere I can report these problems so they might get fixed in future versions?I suspect I can't be the only person having these problems.

View 3 Replies


ADVERTISEMENT

Software :: Compile Java Based Projects Under Fedora 9?

Mar 21, 2010

For the analysis of wireless mobile nodes simulations, I have downloaded Jtrana from [URL] This is a java based project but I do not know what steps I am supposed to follow to use it for my trace analysis. In fact I know how to compile a .java file, but jtrana is a complete GUI software.So I want to know to how to install it under fedora.

View 14 Replies View Related

Debian Installation :: Java Programm To Install And The Installer Is GUI Java Based?

Feb 18, 2011

This is my first post and I'm pretty new on Debian. I had used Ubunu for a while now and I've decided to move on Debian Squeeze.But I've one problem: I've a Java programm to install and the installer is GUI Java based. When I run the script, I've the next message:

Preparing to install. Extracting the JRE from the installer archive.Unpacking the JRE.Extracting the installation resources from the installer archive.Configuring the installer for this system's environment.Launching installer Graphical installers are not supported by the VM. The console mode will be used instead. Preparing CONSOLE Mode Installation. But this program is not able to run the installation in console mode.

I've tried to install sun-java6-jre but without success.Has anyone an idea to help me install this programm? My Configuration: Debian Squeeze 6.0 amd64.

View 13 Replies View Related

Programming :: Non-GNU Based Getopts For Java?

Jul 29, 2010

I'm looking for a version of Getopts for Java that isn't licensed under the GPL and accepts long options (i.e. both -h and --help). My code is licensed under BSD and I don't really want to change that just because a module uses the GPL...

View 1 Replies View Related

General :: Compile Java Code On Ubuntu?

Apr 26, 2011

how to compile java code on ubuntu linux? also is it possible to incorporate C code in Java GUI?

View 1 Replies View Related

Ubuntu :: Run Java Applet Web Based System On IE 7 Which Is Run On Crossover 9 Version

Sep 16, 2010

I have install Ubuntu 10.04 version. Then install Crossover 9 and run Internet Explore 7 on the crossover. Now I need to access web based system through IE7 which is java applet enabled system and also I have already installed java runtime environment on crossover. But that system can not access through IE7 it given some errors.

View 1 Replies View Related

Fedora :: Using GCC To Compile Java Apps?

Sep 21, 2010

I want to use GCC to compile my java programs... I dont want to use OpenJDK. using OpenJDK to compile java... I WANT GCC

When I run this command:

Code:
[AliasM2K@localhost Documents]$ gcc HelloWorld.java

I get:

Code:
no classpath specified

So... How to specify a classpath?

View 1 Replies View Related

Fedora :: GCC To Compile Java Files?

Feb 11, 2011

I want to compile java files using GCC directly . I do not want to use GCJ , forget about javac .

When I am using as
#gcc -x java helloworld.java

Its giving " no classpath specified "

Give me some solution so that I can use GCC as specified above .

View 8 Replies View Related

Programming :: Compile Function C To Java?

Apr 6, 2010

i want compile function c to java under linux. the bashfile comp :

$ cc -fpic -c $(SRCS)
$ ld -shared $(OBJS) -o module.so

i see in www.swig.org

$ comp -java example.i # line 1
$ gcc -c example.c example_wrap.c -I/usr/java/jdk1.6.0_17/include -I/usr/java/jdk1.6.0_17/include/linux # line 2
$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.so #line 3

error line 3 :

/usr/bin/ld: unrecognized option '--add-stdcall-alias'
/usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status

View 1 Replies View Related

Fedora :: How To Compile Java Programs Using OpenJDK

Dec 16, 2009

Tell me how to compile and run java programs using openJDK on fedora 11

i have gcc installed

View 6 Replies View Related

Fedora :: Compile And Execute Java Programs?

Sep 11, 2010

How to compile and execute Java programs

View 1 Replies View Related

General :: Cannot Compile Java Program In SUSE 11.1 Using Javac

Jun 17, 2010

i just grabed a book and wrote a program and tried to compile it using 'javac' and everytime i'm getting this error:

javac Example.java
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'

[Code]....

View 3 Replies View Related

Ubuntu :: Can't Compile Source Packages Under KDE4

Jun 23, 2010

Wanted to switch to Kubuntu and decided a clean install was the way to go. Though the learning curve isn't too tough, I've hit a serious snag: When I try to compile a source package according to the similar instructions in each of the README files, I get the same error message;

Instructions:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
su -c 'make install'

[Code].....

I'm liking this KDE 4.4 setup, but if I can't install the improvements from kde-look.org

View 6 Replies View Related

Red Hat / Fedora :: Install GCC To Compile Java On The Server Using Command Line

Feb 21, 2011

I'm using a webhosting server running CentOS, and I'm trying to install GCC to compile Java on the server. Since I'm new to Linux and don't have root privileges, I'm having trouble installing this. I need to install this using command-line. I don't know if I should compile from source (which I downloaded off the "gcc.gnu.org" website) or if I need to install a binary or something. Can I even install anything without root privileges?

View 9 Replies View Related

Red Hat / Fedora :: Compile Different Packages And Combine Them Into A Single Bin?

Dec 22, 2010

Here i have one situation, that is to compile 1.tar, 2.tar and 3.tar files and make them into a single bin file that is ready to install

View 5 Replies View Related

Software :: Access The Serial Management Consoles Of Various Hardware Devices Via Browser - Java Based

May 22, 2010

Is there any Linux software that allows accessing a pre-configured serial console via Browser using a java applet? I would like to access the serial management consoles of various hardware devices via browser.

View 1 Replies View Related

Ubuntu :: 10.04 Java - Packages Have Unmet Dependencies

Nov 3, 2010

I have the following error in 10.04. I've tried several times to uninstall, resolve, install these dependencies and am at my wits end now. This morning I gave up on OpenJDK and installed Sun JDK, hence the sun versions below. But this error is stopping me from installing anything else.

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:

The following packages have unmet dependencies:
default-jre-headless: Depends: openjdk-6-jre-headless (>= 6b14) but it is not going to be installed
icedtea-6-jre-cacao: Depends: openjdk-6-jre-headless (= 6b18-1.8.2-4ubuntu2) but it is not going to be installed
latexdraw: Depends: libjiu-java but it is not going to be installed
Depends: libjlibeps-java but it is not going to be installed
openjdk-6-jre: Depends: openjdk-6-jre-headless (>= 6b18-1.8.2-4ubuntu2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

me@andromeda:~/private$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
me@andromeda:~/private$ javac -version
javac 1.6.0_22

View 5 Replies View Related

General :: View List Of Updated Packages After Apt-upgrade On Debian-based Systems?

May 15, 2010

I just did an update on my Debian system and it was very long. I'd like to know now, after the upgrades have already been applied, which packages were upgraded and which were not.

View 2 Replies View Related

Debian :: How To Uninstall Java Related Packages

Jan 26, 2011

I just blindly install 'java' in GNU/Linux Debian SID -- so I could use it as a plugin for iceweasel -- Unfortunately, things didn't work as expected. I was used to Debian's APT to take care of things for me as it had done for more years than I could remember. (Being a desktop user/programmer and a beginner system network admin). I want a clean install of java plugin for iceweasel. So I want to remove completely all java related packages --

How do I know which is which and if they are safe to remove without affecting any other part of the system? Now, to install -- what do I need to install in order for iceweasel to have the Java plugin and let java work as it should? I prefer from the Debian package. But if it doesn't work, I'll accept JRE from the java site and install them myself.

View 8 Replies View Related

General :: How To Download Java Packages In System

Feb 23, 2011

I am running Debian Squeeze. How can I download packages in Java? For example I need the javax.mail package.

In windows, I simply download the JAR and point my classpath to that JAR.... How does this work in linux/debian? Is there apt-get command that I can use to get java packages?

View 2 Replies View Related

Ubuntu Security :: Use A "secure" Proprietary Web-based Java FTP Client?

Oct 15, 2010

I was given the responsibility at work to upload some files to an offsite 3rd party FTP server. Apparently we use a "secure" proprietary web-based java FTP client.

The FTP client was buggy and repeatedly crashed. While I was waiting for it to work, I decided to look at the HTML of the website when I was logged in to their FTP server. It contained the following lines:

Code:
hostname="-------------"
username="--------"
password="--------"
connectionType="ftps"
mode="binary"
enableHost="false"
enableConnectionType="false"
enableAnonymous="false"

I substituted dashes for the sensitive information that was in the website. I do not have access to analyze the network traffic to see if our username and password is being transmitted in plain text to the website. It makes me nervous to see the username and password plainly written out in the html for a website; however analyzing the network traffic and securing networks is not part of my job description. So my question for people here who have this as part of their job description is as follows:

View 7 Replies View Related

Slackware :: Mixing 13 And 13-current Java Packages - Pros And Cons?

Apr 28, 2010

I understand it is not generally a good idea to mix 13 and 13-current packages but I am installing OpenProj which requires JDK and the installed JRE (6-18) is up-level from 13's JRE (6-16) and back-level from the 13-current JDK (6-19). Presumably JRE and JDK should be at the same level. Would it be better to take both JRE and JDK to 13-current (6-19) or to take both to 13 (6-16)?

View 3 Replies View Related

Software :: Compile .jar Java Byte-codes Into Native Machine Codes?

Aug 28, 2010

I think I put this in the wrong place

View 1 Replies View Related

Fedora :: Java Based Chat Or Drawing Site Doesn't Load The Applet - "Start: Applet Not Initialized"

Mar 10, 2011

I'm having trouble with my java, I got it to isntall, restarted but when I go to any java based chat, or drawing site it doesn't load the applet, the applet shows up it just says "Start: Applet not initialized"
Did I install it wrong?

View 4 Replies View Related

Ubuntu Servers :: Compile Samba 4.0.0 Alpha 7 In Ubuntu Using The Spec File Provided In The Samba Packages?

Nov 26, 2010

this is my output when I try to compile samba 4.0.0 alpha 7 in Ubuntu using the spec file provided in the samba packages:

bin/mergedobj/samba-util.o: In function `file_lines_parse':
(.text+0x595c): undefined reference to `_talloc_steal'
bin/mergedobj/samba-util.o: In function `data_blob_talloc_named':[code]....

View 1 Replies View Related

Ubuntu :: Kill Window Based On Based On Title Instead Of PID?

Apr 24, 2010

I am working on a set up, and I like to be able to toggle compiz on and off, or toggle dualscreen on and off. The thing is, I also have conky on my desktop as well as a terminal window embedded in my desktop (that requires compiz). So, when I turn comiz off, or resize my desktop, I want to be able to reposition conky/embedded-terminal and the terminals position is relative to my conky position and the size of my virtual desktop.

I can do this all fine, except that to reposition the terminal I need to kill it then reopen it. But if I kill gnome-terminal it kills ALL gnome-terminals instead of just my embedded one. How can I specifically close my embedded one and leave any others untouched? Lets say that the title of my embedded terminal is "trans777"Also, the trans777 titled gnome-terminal will be killed when compiz is not running.

View 1 Replies View Related

General :: Command To Check The Java Version: Java -versionand Got :bash :java: Command Not Found?

Jul 26, 2010

I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found

View 4 Replies View Related

General :: Debian Based - Arch Based - What Is The Practical Difference?

Jun 7, 2010

I notice that on DistroWatch, the descriptions include "debian based", "arch based", etc. For the newbie, is there any practical difference between the different bases, or is it a Coke vs Pepsi type question?

Is a distro based on Debian say, easier for a newbie to learn or work with than say one that is FreeBSD based?

View 9 Replies View Related

Software :: Benefit To Rewrite OSS-based Code To ALSA-based?

Aug 12, 2010

I've got some source code that loads and plays WAV files through the OSS drivers (and USB audio). The code works even under 2.6.34. Is there any benefit to rewriting the code using the ALSA system?

View 1 Replies View Related

General :: Frame Based Vs Dialog Based

Apr 5, 2010

When you use an IDE and it asks you if you want frame based or dialog based, what is the difference?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved