[R] rJava problem

2007-05-17 Thread mister_bluesman

Basically, I’m trying to install rJava on my windows XP machine. I think I
have succeeded in doing so as it appears in the list when i type library()
in R. 

However, when i type ‘library(rJava)’ I get an error dialog box saying:

'This application has failed to start because jvm.dll was not found.
Re-installing the application may fix this problem'

When I press 'OK' on the dialog box, I get the following in the R console:

Error in dyn.load(x, as.logical(local), as.logical(now)) : 
unable to load shared library
'C:/PROGRA~1/R/R-25~1.0/library/rJava/libs/rJava.dll':
  LoadLibrary failure:  The specified module could not be found.
Error : .onLoad failed in 'loadNamespace' for 'rJava'
Error: package/namespace load failed for 'rJava'

Do you have any ideas how I can fix this? I really would appreciate any help
you could give me?

I am using java's jdk1.6.0_01

Thanks
-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10661885
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread Vladimir Eremeev


mister_bluesman wrote:
 
 Basically, I’m trying to install rJava on my windows XP machine. I think I
 have succeeded in doing so as it appears in the list when i type library()
 in R. 
 
 However, when i type ‘library(rJava)’ I get an error dialog box saying:
 
 'This application has failed to start because jvm.dll was not found.
 Re-installing the application may fix this problem'
 
 When I press 'OK' on the dialog box, I get the following in the R console:
 
 Error in dyn.load(x, as.logical(local), as.logical(now)) : 
 unable to load shared library
 'C:/PROGRA~1/R/R-25~1.0/library/rJava/libs/rJava.dll':
   LoadLibrary failure:  The specified module could not be found.
 Error : .onLoad failed in 'loadNamespace' for 'rJava'
 Error: package/namespace load failed for 'rJava'
 
 Do you have any ideas how I can fix this? I really would appreciate any
 help you could give me?
 
 I have tried reinstalling it and I continue to get the same problem. I am
 using java's jdk1.6.0_01
 Thanks
 

Dynamic library jvm.dll must be in the PATH.
-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10661933
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread mister_bluesman

Ah thanks for that. That seems to have done the trick. But I'm not sure
whether I have copied the right jvm.dll file into the path.

I have 3: 

~\Java\jre1.6.0_01\bin\client   -this is the one i copied
~\Java\jdk1.6.0_01\jre\bin\client
~\Java\jdk1.6.0_01\jre\bin\server

Did I copy the right one? or do the all have exactly the same file but just
placed in different directories?

Many thanks



mister_bluesman wrote:
 
 Basically, I’m trying to install rJava on my windows XP machine. I think I
 have succeeded in doing so as it appears in the list when i type library()
 in R. 
 
 However, when i type ‘library(rJava)’ I get an error dialog box saying:
 
 'This application has failed to start because jvm.dll was not found.
 Re-installing the application may fix this problem'
 
 When I press 'OK' on the dialog box, I get the following in the R console:
 
 Error in dyn.load(x, as.logical(local), as.logical(now)) : 
 unable to load shared library
 'C:/PROGRA~1/R/R-25~1.0/library/rJava/libs/rJava.dll':
   LoadLibrary failure:  The specified module could not be found.
 Error : .onLoad failed in 'loadNamespace' for 'rJava'
 Error: package/namespace load failed for 'rJava'
 
 Do you have any ideas how I can fix this? I really would appreciate any
 help you could give me?
 
 I have tried reinstalling it and I continue to get the same problem. I am
 using java's jdk1.6.0_01
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10662098
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread Vladimir Eremeev



mister_bluesman wrote:
 
 Ah thanks for that. That seems to have done the trick. But I'm not
 sure whether I have copied the right jvm.dll file into the path.
 
 I have 3 places where a jvm.dll file can be found: 
 
 ~\Java\jre1.6.0_01\bin\client   -this is the one i copied
 ~\Java\jdk1.6.0_01\jre\bin\client
 ~\Java\jdk1.6.0_01\jre\bin\server
 
 Did I copy the right one? or do the all have exactly the same file but
 just placed in different directories?
 
 

The first one works for me (from the JRE), since I don't have the
Development Kit, only Runtime Environment.
Try using comp from the system command prompt and compare files to see if
they are same.
-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10662482
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread mister_bluesman

Could someone please tell me where I can find a simple example, which does
not require linux!, on how I can see if this is working and get me started
using rJava. I have read the document 'Getting Started with the
R-Java/Omegahat Interface' and have tried to type in things such as
.JavaConstructor(JButton, A button) in the R console after loading
library(rJava). However i keep getting the error: 

Error: could not find function .JavaConstructor

Any help would be so greatly appreciated.

Thanks


mister_bluesman wrote:
 
 Basically, I’m trying to install rJava on my windows XP machine. I think I
 have succeeded in doing so as it appears in the list when i type library()
 in R. 
 
 However, when i type ‘library(rJava)’ I get an error dialog box saying:
 
 'This application has failed to start because jvm.dll was not found.
 Re-installing the application may fix this problem'
 
 When I press 'OK' on the dialog box, I get the following in the R console:
 
 Error in dyn.load(x, as.logical(local), as.logical(now)) : 
 unable to load shared library
 'C:/PROGRA~1/R/R-25~1.0/library/rJava/libs/rJava.dll':
   LoadLibrary failure:  The specified module could not be found.
 Error : .onLoad failed in 'loadNamespace' for 'rJava'
 Error: package/namespace load failed for 'rJava'
 
 Do you have any ideas how I can fix this? I really would appreciate any
 help you could give me?
 
 I have tried reinstalling it and I continue to get the same problem. I am
 using java's jdk1.6.0_01
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10664944
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread Tobias Verbeke
mister_bluesman wrote:
 Could someone please tell me where I can find a simple example, which does
 not require linux!, on how I can see if this is working and get me started
 using rJava. I have read the document 'Getting Started with the
 R-Java/Omegahat Interface' and have tried to type in things such as
 .JavaConstructor(JButton, A button) in the R console after loading
 library(rJava). However i keep getting the error: 

 Error: could not find function .JavaConstructor
   
This function is not part of rJava; cf.

   library(help = rJava)

On the home page of rJava

   http://www.rforge.net/rJava/

there are very simple examples that can get you started.

HTH,
Tobias

-- 

Tobias Verbeke - Consultant
Business  Decision Benelux
Rue de la révolution 8
1000 Brussels - BELGIUM

+32 499 36 33 15
[EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] rJava problem

2007-05-17 Thread mister_bluesman

Ah ok, thanks. However (again!), when i try to strat the jvm using .jinit() I
don't seem to be able to as I get the message:

Error in .jinit() : Cannot create Java Virtual Machine

What is going on here?

Thanks again.



mister_bluesman wrote:
 
 Basically, I’m trying to install rJava on my windows XP machine. I think I
 have succeeded in doing so as it appears in the list when i type library()
 in R. 
 
 However, when i type ‘library(rJava)’ I get an error dialog box saying:
 
 'This application has failed to start because jvm.dll was not found.
 Re-installing the application may fix this problem'
 
 When I press 'OK' on the dialog box, I get the following in the R console:
 
 Error in dyn.load(x, as.logical(local), as.logical(now)) : 
 unable to load shared library
 'C:/PROGRA~1/R/R-25~1.0/library/rJava/libs/rJava.dll':
   LoadLibrary failure:  The specified module could not be found.
 Error : .onLoad failed in 'loadNamespace' for 'rJava'
 Error: package/namespace load failed for 'rJava'
 
 Do you have any ideas how I can fix this? I really would appreciate any
 help you could give me?
 
 I have tried reinstalling it and I continue to get the same problem. I am
 using java's jdk1.6.0_01
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/rJava-problem-tf3771205.html#a10668841
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.