ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-dev
tcljava-dev
Re: [tcljava-dev] Please help in loading a class...
by Georgios Petasis other posts by this author
Mar 14 2007 12:24AM messages near this date
Re: [tcljava-dev] Please help in loading a class... | Re: [tcljava-dev] Please help in loading a class...
I am using the Sun JDK. I think that it is more an "access" problem 
(i.e. restriction due to private members), than
the fact that the class it is not found due to the classpath. In my 
classpath, I have put all used JAR files that are specific
to the application, but no path that relates to the JVM. I am using the 
same path as when I run the app from the command
line. From the command line it runs. From tclblend I cannot start it :-(

The intresting think is that I can run classes from the application that 
get called from the class that starts the app, but not the
class itself. Also, can anyone propose any sun JVM jar files I need to 
put in the classpath to run graphical applications?
(Tclblend 1.3.x didn't need such paths from the JVM, does version 1.4.0 
needs such paths?)

Regards,

George


O/H Patrick Finnegan ??????:
>  On Tuesday 13 March 2007 07:19, Georgios Petasis wrote:
>    
> > Hi all,
> >
> > I am using tclblend 1.4.0 to load JVM from Tcl. However, when I try to
> > load a specific class I got an error:
> >
> > java::call {enrichment.EnrichmentManager$Test3} main
> > Class "enrichment.EnrichmentManager.Test3" is not accessible
> >
> >     
> 
>  Have you built the classpath inside the script?  
> 
>  # build tcl classpath
> 
>  append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mq.jar\;
>  append x $drive/IBM/WebSphereMQ/Tools/Java/base\;
>  append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mqjms.jar\;
>  append x $drive/IBM/WebSphereMQ/Tools/Java/jms\;
>  append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mqbind.jar\;
> 
>  set env(TCL_CLASSPATH) $x
> 
>  puts "\nTCL_CLASSPATH = [ array get env TCL_CLASSPATH ]\n"
> 
>  Have you imported the required classes?  
> 
>  # import required classes 
>     java::import com.ibm.mq.jms.MQQueueConnectionFactory
>     java::import com.ibm.mq.jms.services.ConfigEnvironment
>     java::import com.ibm.mq.jms.JMSC
>     java::import com.ibm.mq.jms.MQQueueSession
>     java::import com.ibm.mq.jms.MQQueueSender
> 
>     # instanciate MQQueueConnectionFactoryI object.
>     set MQQueueConnectionFactoryI [ java::new MQQueueConnectionFactory ]
> 
>  Patrick.
> 
>    
Thread:
Georgios Petasis
Patrick Finnegan
Georgios Petasis
Mo DeJong

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved