Class file location

I am not sure if this would be an admin type question but
here goes:
I have a Coldfusion 6.1 server riding on Weblogic 8 ish and I
am trying to do a small java example... *sigh*
I am getting a "class not found" error and so I went looking
for my classpath, since it didn't seem to be what was default in
the documentation. *sigh*
So I find that it is defaulting to .jar files and no
directories. I can see that there are class files that are out in
our coldfusion land so how does it see these? I am pretty ignorant
of weblogic. I was curious how they can be reading the files, if
they are, when the paths that I see only point to jar files. So, no
explanation is too simple, please use small words and type slow for
me. How should/do I change the path since I have to change it in
Weblogic not CF admin. Is there some kind of default folder I am
missing? I even tried adding my class to cfclasses under the cf
file directory. Any help (and I need a lot) would be greatly
appreciated.
Thank you in advance for your infinite patience and any help
you can provide!!!
~Va :-)

I f you want to try the jar method, here's a quicky on how to
jar up your file as a package.
in a work folder, create a folder structure for your package,
convention uses reverse internet domain (i.e.
com.adobe.packagename)
for this one, we'll use a simple one level package called
ironyx. So create a folder called ironyx.
copy the java file you want to package up into the ironyx
folder
at the top of the java file place the following;
package ironyx;
Compile the java file.
Using a command prompt in the parent folder of the ironyx
folder, type the following;
jar -cf ironyx.jar ironyx
This will jar up the ironyx folder contents, including both
the java and class files into an ironyx.jar file. You can delete
the source java files prior to creation of the jar file if you
wish.
Copy the jar file to ColdFusion WEB-INF\lib directory, bounce
the cf instance
A typical cf execution might look like
<cfset mySimpleMath=
CreateObject("java","ironyx.SimpleMath")>
<!--- Usually you Initialize the object, but that depends
on the constructors of the class--->
<cfset mySimpleMath.init()>
<!--- Execute the method --->
<cfset result = mySimpleMath.addNumbers(num1, num2)>
Note: If you're using the SimpleMath class file from
http://builder.com.com/5100-6370-5177283.html,
they have a text formatting error for the method. There should be
spaces in publicintaddNumbers and it should look like
public int addNumbers

Similar Messages

  • Java Concurrent Program .class file location

    Hi frnds,
    I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
    I searched for the same and found the following article in many places which doesnt seem to help me much.
    http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
    pls help. thanks in advance.
    Lisan

    Hi;
    pls file can be found like
    /apps_st/appl/bom/12.0.0/patch/115/sql/
    Contains SQL*Plus scripts used to upgrade data, and .pkh, .pkb, and .pls scripts to create PL /SQL stored procedures.
    Regard
    Helios

  • .class file location of a java concurrent program

    Hi frnds,
    I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
    I searched for the same and found the following article in many places which doesnt seem to help me much.
    http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
    pls help. thanks in advance.
    Lisan

    Hi Lisan,
    Which version are you using? Folder strucure differs for 11i and R12 versions.
    All the class files will be placed under the JAVA_TOP folder. From there you have to follow your package structure. Here it is oracle/apps/xxogl/f04/cp/file
    HTH,
    Syed.

  • Java class files location of OSB resources

    What is the location of the java class files that get generated when OSB project/resources are deployed to the server ?

    Hi Lisan,
    Which version are you using? Folder strucure differs for 11i and R12 versions.
    All the class files will be placed under the JAVA_TOP folder. From there you have to follow your package structure. Here it is oracle/apps/xxogl/f04/cp/file
    HTH,
    Syed.

  • Where is this class file located??

    In developer studio, I am getting an error when building my java project that says "The project was not built since its classpath is incomplete.  Cannot find the class file for com.sapportals.wcm.util.uri.RID.  Fix the classpath then try rebuilding this project."
    Here is the import statement:  import com.sapportals.wcm.util.uri.RID;
    I have not been able to find the jar file needed to fix this anywhere.  Does anybody know the name of the file required for this?
    Thanks for any help!

    first of all add a web dynpro reference (dc->properties)
    PORTAL:sap.com/com.sap.km.application
    second, check these links
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/5a/2e2f4234135433e10000000a155106/frameset.htm">external library dc</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/194bdc4f-0901-0010-82ba-bf73af5d5f75">external libraries</a>
    you may have to create a different dc to contain your jars.

  • Edit a class file in Eclipse

    I am new to Java and Eclipse and Weblogic.
    I was give a .war file and told to simply edit a parameter that they thought was in one of the .jsp pages in the war file.
    the only occurance of the parameter name "SearchProvider" is in the Search.class file located deep in folders under the WEB-INF folder.
    the only way i could even find the parameter "SearchProvider" was with the use of an Effective File Search trial software.
    I opened (barely) the Search.class file with windows notepad and its mostly jibberish but I can find the reference to "SearchProvider" in the class file.
    I need to change this parameter.
    When I import this into eclipse, I get the message there is no source file attached to the class file Search.class.
    I added the entire class folder into the library. I tried to change the class source but all I have are just the files in the .war package.
    I have tried changing the extension to .jar and this will let me add these files as a project, but I cannot edit this Search.class file no matter what I try.
    My basic question is, Am I missing files from the client? Do I need more than just a war file?

    Most likely you are searching the wrong place, on an web application the first place to start searching is the web.xml, it is the core configuration file it will tell everything about your application including which other tecnologies are being used, like struts, it is very likely that the answer to your question lies in the web.xml file.

  • How to find the location of java class files at runtime?

    Does anyonw have an idea how to get the file name of a java class given the binary name?
    I mean how can I get the file name for my class myPackage.myClass?
    I am looking for a function which takes "myPackage.myClass" as input and returns
    "c:\\javaprojects\\myPackage\\myClass.class".
    I tried to do it with the LassLoader class but it did not work. Does anyone have an idea if the Java core API already has a function which does that?
    Thanks, Bernhard

    Hi ,
    It is a simple SAMPLE code , you think and build a logics to handle all classes.
    Try this sample, It doesn't handle the inner classes you put logic to handle the logics for inner classes.
    The inner class format is it contains the character $ in the File location but inside the code you put "." instedad of "$" you to find out or put trials.
    package pkg1;
    import java.io.* ;
    import java.util.* ;
    import java.util.zip.* ;
    public class ClsB {
         private static Vector clsPaths ;
         public static Vector getPaths() {
              if( clsPaths == null ) {
                   String paths = System.getProperty( "java.class.path" ) ;
                   // In linux or solarise use the following
                   // StringTokenizer st = new StringTokenizer( paths , ":\n" ) ;
                   StringTokenizer st = new StringTokenizer( paths , ";\n" ) ;
                   clsPaths = new Vector() ;
                   while( st.hasMoreTokens() ) {
                        String path = st.nextToken() ;
                        File f = new File( path ) ;
                        if( f.exists() ) {
                             try {
                                  f = f.getCanonicalFile() ;
                                  clsPaths.add( f ) ;
                             }catch( IOException ioe ) { }
              return clsPaths ;
         public static String findClassPath( String fullClassName ) {
              Vector v = getPaths() ;
              for( int i = 0 ; i < v.size() ; i++ ) {
                   File f = ( File ) v.get( i ) ;
                   String path = findIn( f , fullClassName ) ;
                   if( path != null )
                        return path ;
              return null ;
         static boolean isJar( File jar ) {
              if( jar.isDirectory() )
                   return false ;
              try {
                   ZipFile zf = new ZipFile( jar ) ;
                   return true ;
              } catch ( ZipException ze ) {
                   // It is not a jar file
                   // you handle this
              } catch ( IOException ioe ) {
                   ioe.printStackTrace() ;
              return false ;
         static String findIn( File dirOrJar , String clsName ) {
              if( isJar( dirOrJar ) ) {
                   // It is something different because the class inside the jar file
                   // Simply I return the jar file location and the entry name ,
                   // but you put action what you want
                   if( isInsideJar( dirOrJar , clsName ) ) {
                        // All archieve file using the path separator is '/'
                        return dirOrJar.getPath() + "!" + clsName.replace( '.' , '/' ) + ".class" ;
              } else {
                   File f = new File( dirOrJar , clsName.replace( '.' , File.separatorChar ) + ".class" ) ;
                   if( f.exists() ) {
                        return f.getPath() ;
              return null ;
         static boolean isInsideJar( File jar , String clsName ) {
              try {
                   ZipFile zf = new ZipFile( jar ) ;
                   // All archieve file using the path separator is '/'
                   ZipEntry ze = zf.getEntry( clsName.replace( '.' , '/' ) + ".class" );
                   return ( ze != null ) ;
              } catch ( ZipException ze ) {
                   ze.printStackTrace() ;
              } catch ( IOException ioe ) {
                   ioe.printStackTrace() ;
              return false ;
         public static void main(String[] args) {
              System.out.println( findClassPath( "pkg1.ClsB" ) );
              System.out.println( findClassPath( "pkg1.pkg2.ClsA" ) );
    }

  • In PI 7.1 - Java UDF's Compiled Class files - Jar File location

    Hi All,
    In PI 7.1 Does anybody know where the compiled Java UDF's (which are used in Graphical mapping) class files stored in jar are located in integration server? I want to use this jar file in my XSLT mapping.

    Hi,
    I guess it would be under
    \usr\sap\<SID>\DVEBMGS00\j2ee\cluster\server0\temp\classpath_resolver
    or
    \usr\sap\<SID>\DVEBMGS00\j2ee\cluster\server0\.\temp\classpath_resolver
    Where SID is your XI instance name.
    Thanks,
    Gujjeti
    Edited by: Praveen Gujjeti on Jun 23, 2008 5:12 PM

  • Java .class files - Moving the Main Class .class file to a new location

    Novice question....so much so that I hope it's even coherent...
    In a Java program which references many associated .class files (e.g. bicycleMain.class, bicycleSub1.class, bicycleSub2.class, etc....), do the associated .class files always have to be located in the same directory as the Main .class file?
    What I'm getting at is - If I've developed an application consisting of several .class files on my own Windows PC and I want to put the compiled application out on our Windows File Server so that anyone can execute my application, how would I go about doing this?
    Say I put the compiled .class files in H:\PROJECTS\JAVA\COMPILED\, will other people be able to execute the application from their PCs by simply issuing the command line:
    'java h:\projects\java\compiled\bicycleMain'
    Any insights would be very helpful in getting me oriented. Thanks in advance.

    Interesting...so are you saying the command line might look something like this:
    java -classpath h:\projects\java\compiled bicycleMain
    And if I want other people to be able to execute the application without specifying the -classpath option then they would need to manually update the ClassPath environment variable on their individual PCs first?

  • Tomcat can't locate my class files

    Tomcat can't locat my class file for my javabeans in a jsp page.
    (Tomcat 4.1.24/windows XP)
    I have created inside of webapps a directory thesis and also the WEB-INF\classes and WEB-INF\lib. I don't know what should I put in web.xml so it is basically almost empty.
    this is the error I get where Searcher is my javabean:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:89: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] Searcher seek = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:91: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) pageContext.getAttribute("seek", PageContext.PAGE_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:94: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Searcher");
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:111: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] out.print(JspRuntimeLibrary.toString((((Searcher)pageContext.findAttribute("seek")).getAnalyze())));
    [javac] ^
    [javac] 4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)

    did you create the Searcher class? if so stick it in a package and put it under your web-inf directory. then use an <%@ page import="" %> statement to import the code.
    if you didn't create the class is it in some jar library you downloaded? if so stick the jar file in your web-inf/lib folder.
    -S-

  • Jsp file not able to locate class file in JWS 2.0

    hello all,
    i am a beginner at jsp...
    my problem....
    i have created a jsp file which accesses a SpellCheck.class file..
    i am using Java Web Server 2.0...
    and in the classpath i have set the classpath variable to c:\javawebserver2.0\lib. I have placed the class file in this directory.
    Now when i run the jsp file it gives the following errors...
    C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:73: Class pagecompile.jsp.SpellCheck not found in type declaration.
    SpellCheck help = null;
    ^
    C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:76: Class pagecompile.jsp.SpellCheck not found in type declaration.
    help= (SpellCheck)
    ^
    C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:81: Class pagecompile.jsp.SpellCheck not found in type declaration.
    help = (SpellCheck) Beans.instantiate(getClassLoader(), "SpellCheck");
    ^
    3 errors
    i guess this is happening because it cant find the .class file.
    MY QUESTION IS:
    where should i place the class file so the the .jsp is able to locate it??
    the code of the jsp is as follows:
    <%@ page language="java"%>
    <jsp:useBean id="help" scope="request" class="SpellCheck">
    <%
         System.out.println("Working with the bean");
         help.setWord(request.getParameter("word"));
    %>
    </jsp:useBean>
    <html>
    <body>
    You entered the input,
    <b> <%= request.getParameter("word")%></b><br>
    The processed output is:<br>
    <%= Integer.parseInt(request.getParameter("mode"))==1 ? help.reverse() : " "+help.check() %>
    </body>
    </html>

    just place your class file in JWS2.0/classes directory
    and restart you Serverhi
    yes ive done it...
    1. ive placed the .class file in JWS2.0/classes directory
    2. ive placed the .jsp file and the .html file in the JWS2.0/public_html directory... it still does'nt work...
    :o(
    boney

  • AS3 classes source file location?

    Can anyone tell where the AS3 package source files (*.as) are located?
    Besides for looking up class definitions in the AS3 framework in the Actionscript 3 Language Reference site, I'd like to open specific class files to look at them in their entirety. But I can't seem to find them, nor can I find any documentation specifying their location.
    Any information on where the core AS3 package files are located locally would be appreciated.
    Thanks.
    AS3 Reference
    ( http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html ) 

    Well Nick, I think you were right..
    The following summarizes add/modify classpaths (as2) and 'source path' (as3) :
    http://help.adobe.com/en_US/flash/cs/using/WS3e7c64e37a1d85e1e229110db38dec34-7fa4a.html
    Under Flash Preferences menu ->ActionScript->Language->ActionScript 3.0 Settings you find at the top level :
    Filed labeled "Flex SDK Path : $(AppConfig)/ActionScript 3.0/flex_sdk/4.0.0/"
    Found the flex_sdk folder in the Flash application folder (mac), Programs file on PC I imagine.
    Therein is a 'flex.swc' file, which I'm guessing has all the core classes.
    I'm guessing one needs to download the Flex SDK source code here; you may need to download & learn how to use a Subversion (versioning app) client ?? :
    http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK
    Seems like a lot of hoops to jump through just to access those source files for a beginner.
    Frustrated.

  • Calling class or jar file location

    I created one set of java api for third party application to call. How do I found out that the location of third party jar file or class file that call my api? Please advise.

    If you don't know what called your program, then there is no way.

  • IE 6 won't locate class file???

    Can someone tell me what's going on here:
    I've created a simple Hello world applet and compiled it.
    When I use the appletviewer to view the html page I've created for it, it works fine, no problems.
    However if I try to view it in Internet Explorer, I just get a grey box where my applet should be and and the message "class HelloWorld not found" in the taskbar.
    I can't understand why it'll work in the appletviewer and not in Internet Explorer.

    <HTML>
    <HEAD>
    <TITLE>A Simple Program</TITLE>
    </HEAD>
    <BODY>
    Here is the output of my program:
    <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
    </APPLET>
    </BODY>
    </HTML>
    I don't think it's a problem with the HTML because it if it did, it wouldn't work in the appletviewer either. I think it might have something to do with with how IE locates class files?

  • Location of deployed WAR or class files

    We have a Web module deployed on an Enterprise Edition Sun App Server. The OS is Solaris. When deployed the module was targeted to a cluster.
    Where can I find the class files of this WAR module or the WAR file itself? If I go to <appserver-install-dir>/domains/mydomain/applications/j2ee-modules/mymodule/WEB-INF/classes, all I get are property files deployed in the classpath.
    Thanks.

    You can look for the name of your WAR archive in the domain.xml (if appserver 8.x), you would see something like the following, an example here :
    +<web-module availability-enabled="false" context-root="amserver" directory-deployed="false" enabled="true" location="${com.sun.aas.instanceRoot}/applications/j2ee-modules/amserver" name="amserver" object-type="user"/>+
    Note the location variable...
    If your using version 7.x the file is called server.xml.
    These xml files typically are located under /var/opt/SUNWappserver/domains/domain1/config
    Hope this helps,
    Chris

Maybe you are looking for

  • How do I save iTunes to a disc?

    Ok, I got a new 8GB iPod nano for xmas and in our house we have two computers. A main one with internet connection and another in my room without. All of my music is on an iTunes library (the version that came on a disc with iPod mini) on the compute

  • Youtube videos won't completely load / play in safari - (OK in firefox tho)

    So whenever I try to play a youtube video, it'll partially buffer, and only about the first quarter to half of the video will play. This was the case in Safari 2.whatever and Tiger, and is still the case with Safari 3 and Leopard. Here's the weird pa

  • BB app world

    Hi, I have just brought a BB and have already activiated the BBM and internet wiht my service provider o2. I have created a BB id on my phone in order to start downloading apps but the problem i am having is that when try to sign in the message that

  • HT4623 updated ipad using itunes.  Now I cant connect to the iTunes Store how do I fix this?

    I updated my iPad using the iTunes Store on my PC.  Now I cna't access the iTunes Store.  I can only connect to iTunes Radio.  How do I fix this?

  • Nokia 6300 password problem

    My Nokia's 6300 keyboard suddenly stopped with working,and when I turn off,and on my cell phone,I type the password,and it says ``wrong password``.What should I do?Please HELP! Solved! Go to Solution.