packages and JAR files

New to Java:

I'm trying to learn more about the packages and JAR libraries using jdk1.7.0_17 on Debian 6.0.7 (Squeeze). I created a tree of directories and files to work with:
2013-05-11 20:22:07 dpchrist@desktop ~/sandbox/java/jar
$ tree .
.
|-- Makefile
|-- bin
|   |-- using_class_files
|   |   `-- MyApp.class
|   `-- using_jar_file
|-- ext
|   `-- com
|       `-- example
|           `-- myapp
|               `-- util.jar
|-- obj
|   `-- com
|       `-- example
|           `-- myapp
|               `-- util
|                   `-- Speak.class
`-- src
    `-- com
        `-- example
            `-- myapp
                |-- MyApp.java
                `-- util
                    `-- Speak.java

17 directories, 6 files

2013-05-11 20:22:39 dpchrist@desktop ~/sandbox/java/jar
$ cat src/com/example/myapp/util/Speak.java 
package com.example.myapp.util;
public class Speak {
    public static void hello(String arg) {
     System.out.println("hello, " + arg);
    }
}

2013-05-11 20:23:27 dpchrist@desktop ~/sandbox/java/jar
$ cat src/com/example/myapp/MyApp.java 
import com.example.myapp.util.Speak;
public class MyApp {
    public static void main(String [] args) {
     Speak s = new Speak();
     s.hello("world!");
    }
}

2013-05-11 20:23:54 dpchrist@desktop ~/sandbox/java/jar
$ cat Makefile 
.PHONY: all
all: clean using_class_files using_jar_file

.PHONY: using_class_files
using_class_files:
     # create utility bytecode file (Speak.class)
     mkdir -p obj/com/example/myapp/util
     javac -d obj src/com/example/myapp/util/Speak.java

     # compile application file against Speak.class
     mkdir -p bin/using_class_files
     javac -d bin/using_class_files -cp obj src/com/example/myapp/MyApp.java

     # run application
     java -cp obj:bin/using_class_files MyApp

.PHONY: using_jar_file
using_jar_file:
     # put Speak.class into a Java archive (util.jar)
     mkdir -p ext/com/example/myapp
     jar cvf ext/com/example/myapp/util.jar -C obj/com/example/myapp/util Speak.class

     # print util.jar table of contents
     jar tf ext/com/example/myapp/util.jar

     # compile application against util.jar
     mkdir -p bin/using_jar_file
     javac -d bin/using_jar_file -extdirs ext src/com/example/myapp/MyApp.java

.PHONY: clean
clean:
     rm -rf bin ext obj
I use to make my orders are repeatable. the Makefile is 'quick and dirty '. Emphasis is placed on the keywords 'package' and 'import' of Java and command line tools and their options (javac, jar and java).

Compile the utility class (Speak.java), compile the application (MyApp.java) against the tree of bytecode (. / obj) and running the application against the tree quote bytecode:
2013-05-11 20:23:58 dpchrist@desktop ~/sandbox/java/jar
$ make clean
rm -rf bin ext obj

2013-05-11 20:24:01 dpchrist@desktop ~/sandbox/java/jar
$ make using_class_files
# create utility bytecode file (Speak.class)
mkdir -p obj/com/example/myapp/util
javac -d obj src/com/example/myapp/util/Speak.java
# compile application file against Speak.class
mkdir -p bin/using_class_files
javac -d bin/using_class_files -cp obj src/com/example/myapp/MyApp.java
# run application
java -cp obj:bin/using_class_files MyApp
hello, world!
Put the bytecode of the utility (Speak.class) file in a JAR file (util.jar) works, but compile the application against the tree in the POT (. / ext) fails:
2013-05-11 20:24:08 dpchrist@desktop ~/sandbox/java/jar
$ make using_jar_file
# put Speak.class into a Java archive (util.jar)
mkdir -p ext/com/example/myapp
jar cvf ext/com/example/myapp/util.jar -C obj/com/example/myapp/util Speak.class
added manifest
adding: Speak.class(in = 572) (out= 364)(deflated 36%)
# print util.jar table of contents
jar tf ext/com/example/myapp/util.jar
META-INF/
META-INF/MANIFEST.MF
Speak.class
# compile application against util.jar
mkdir -p bin/using_jar_file
javac -d bin/using_jar_file -extdirs ext src/com/example/myapp/MyApp.java
src/com/example/myapp/MyApp.java:1: error: package com.example.myapp.util does not exist
import com.example.myapp.util.Speak;
                             ^
src/com/example/myapp/MyApp.java:4: error: cannot find symbol
     Speak s = new Speak();
     ^
  symbol:   class Speak
  location: class MyApp
src/com/example/myapp/MyApp.java:4: error: cannot find symbol
     Speak s = new Speak();
                   ^
  symbol:   class Speak
  location: class MyApp
3 errors
make: *** [using_jar_file] Error 1
Any suggestions?

TIA,

David

Normally, you would run javac from the 'src' directory, so:

javac [options] com/mycompany/whatever/package/MyClass.java

It will then automatically find or compile all the other classes that are correctly under 'src' under their packages.

Tags: Java

Similar Questions

  • Problem with several adapters and Jar file included in a service.

    Hi all

    I'm new here and I am ready to work with the VMWare client sdk. I have already started and exported several adapters to implement the full functionality that I need. However, I get an error:

    Request context failed to create 'com.management.serviceprovider' in ' 1.0.0 version. org.springframework.beans.factory.BeanCreationException: error creating bean with name 'DatacenterConfig': calling the init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: cannot find class [com.adapters.Datacenter.ClusterConfigAdapterImpl] for the beans with the name 'ClusterConfigAdapterImpl' defined in URL [bundleentry://281.fwk1147580192/META-INF/spring/bundle-context.xml]. nested exception is java.lang.ClassNotFoundException: com.adapters.Datacenter.ClusterConfigAdapterImpl finds do not bundle [com.management.serviceprovider]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

    to org.springframework.beans.factory.support.AbstractBeanFactory$ 1.getObject(AbstractBeanFactory.java:294)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

    to org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$ 1600 (AbstractDelegatedExecutionApplicationContext.java:60)

    to org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$ 4.run(AbstractDelegatedExecutionApplicationContext.java:325)

    ...

    This error occurs very often and it's strange because I place the cards together in a same way. Here is the OSGI layer and contaxt bundle files:

    Context Bundle:

    < name of the bean = "ClusterAdvancedAdapterImpl" class = "com.adapters.Datacenter.ClusterAdvancedAdapterImpl" >

    < constructor-arg ref = "dataServiceExtensionRegistry" / >

    < / bean >

    < osgi:service id = "DatacenterConfig" ref = "ClusterConfigAdapterImpl".

    interface = "com. VMware.vise.Data.Query.PropertyProviderAdapter"/ >

    < osgi:reference id = "dataServiceExtensionRegistry".

    interface = "com. VMware.vise.Data.Query.DataServiceExtensionRegistry"/ >

    And I really don't know why this isn't a job.

    The second problem is that I have another project with classes and I want to export it to a jar file. When I do this I also want to include this pot in the bundle, but when I change the ant file it does not work on virgo.

    Any help will be appreciated.

    Kind regards

    Stefan

    For option 2 which he question in post above, you can use the piece of code below in the Ant script in the target of the compilation at the end.

    --------

    -----

  • 1.1 Eclipse plug-in and JAR files


    Yes, it's a little heavy, but you must run cap on the JAR file to get the library COD.

  • packages and development amateur

    I beg you to excuse the style thought-TI-by means of this post. My hope is that other amateur developers can benefit from this thread. In addition, reactions of more advanced java developers will be appreciated.

    Ah, life was simple then. Four months ago my amateur, the [http://r0k.us/graphics/SIHwheel.html url] java project Interactive color wheel, had just SIHwheel.java, generating five classes. Put the classes in a jar file and upload it to my site.

    Now, the project has 8 source files (split between two directories of brother), 33 class files as well as several support files. Put everything but the sources in a .jar file and upload to my site.

    Heh, all that does not even include the HTML main link above.


    I decided it was time to increase the maturity of the project and to set up a couple of packets for me. Two of the source files are provided by other people. I had commented statements package because I didn't know how else to make them work with my package-ignorant structure. It is:
    D:\progming\java\SIHwheel\AbstractBean.java (borrowed from SwingX project) --> 1 class
    D:\progming\java\SIHwheel\ColorTable.java --> 6 classes
    D:\progming\java\SIHwheel\HelpBox.java --> 4 classes
    D:\progming\java\SIHwheel\QEBeanTableModel.java --> 3 classes
    D:\progming\java\SIHwheel\SIHwheel.java --> 15 classes
    D:\progming\java\SIHwheel\SIHmanifest.txt
    plus a .png image, two .html files, and five .properties files
    
    D:\progming\java\ntc\ColorName.java --> 2 classes
    D:\progming\java\ntc\Hilb.java (provided by mathematician friend) --> 1 class
    D:\progming\java\ntc\NTC.java --> 1 class
    
    D:\progming\web\r0k.us\www\graphics\SIHwheel.html
    For added convenience, I been copied class files from the directory of ntc on the SIHwheel directory and generating the .jar with:
    ] jar cvfm SIHwheel.jar SIHmanifest.txt *.class *.properties *.html *.png

    Primitive, but it all works. I started adding statements of package of java files (and those did uncomment). My package for this project are:

    * us.r0k.sihwheel
    * us.r0k.ntc

    Immediately, I came across problems. I couldn't compile most of the files .java their new tax package. Time to read the directions on the packaging [url http://download.oracle.com/javase/tutorial/java/package/packages.html]. I learned that I'm going to need a CLASSPATH variable (for some reason I did not in Windows 7, but it is always to find the official java classes without problem) and a more robust development tree. This I added:
    D:\progming\java\packages\source\us\r0k\sihwheel
    D:\progming\java\packages\source\us\r0k\
    D:\progming\java\packages\class\us\r0k\sihwheel
    D:\progming\java\packages\class\us\r0k\ntc
    
    ] set CLASSPATH=D:\progming\java\packages\class
    ] set SOURCEPATH=D:\progming\java\packages\source
    ] set MYCLASSES=D:\progming\java\packages\class
    (CLASSPATH may well push, but MYCLASSES is specific to a tree only).

    This structure makes sense, and it is expandable in the future?

    I'm target compilation to java 1.5, and orders of compilation were form:
    ] javac - target 1, 5-1, 5 ColorTable.java source

    The new provision requires orders of compilation to be structure that supports:
    ] javac-source 1.5-1.5 - MYCLASSES % ColorTable.java % d target

    The classes resulting magically end up by in D:\progming\java\packages\class\us\r0k\sihwheel because that ColorTable.java informs the compiler that it is in the package "us.r0k.sihwheel".

    Build the .jar, or even in the course of implementation of the programme, now becomes complicated. The classes are more all in the devolopment directory. Instead, they are scattered on the MYCLASSES tree, in four different locations. Resource files are in another location.
    D:\progming\java\packages\class\us\r0k\ntc
    D:\progming\java\packages\class\us\r0k\sihwheel
    D:\progming\java\packages\class\org\jdesktop\beans
    D:\progming\java\packages\class\edu\mit\csail\people\jaffer
    
    D:\progming\java\packages\source\us\r0k\sihwheel
    I figured out how to run as a program:
    ] java us.r0k.sihwheel.SIHwheel

    It will work but is unable to access resources. It was used to find in the current directory. How a bundled program find resources?

    Similarly, I managed, via a very long jar command, to generate a file jar with all the classes and resources inside. It won't work, however, so I don't know if it deems these resources or not. The command 'java-jar SIHwheel.jar' reports a NoClassDefFoundError. I actually tried twice. The first time was with the original manifesto, which said simply:
    hand-Class: SIHwheel
    "Ah-ah," I thought. "It's a package now! So I modified the manifesto:
    hand-Class: us.r0k.sihwheel.SIHwheel
    Neither pot could find its main class. How to make this work?

    Sorry for the length of this post. My questions are in bold, and I understood a lot of things that could be useful to other java lovers.

    -Rich

    Published by: RichF December 13, 2010 21:23
    removed repeated text

    RichF wrote:


    Not quite sure I understand. CLASSPATH can represent several branches, separated by a comma (windows). In my case, this is a directory only, but it could develop. Actually a few minutes ago I read that CLASSPATH would usually start with a ".", by specifying the current directory. I.e.

    set CLASSPATH=.;D:\progming\java\packages\class
    

    I didn't do that (but I will). That's why I created the separate MYCLASSES environment variable, to specify a single branch.

    There may be two types of entry on your classpath, directories and .jar files. The directory continues to be the root of the tree of class, i.e. package directories are added to the path provided.

    The. represents the current directory, then do not use it unless the current directory is the root of a tree of the class. Either by the way, don't count on CLASPATH as an environmental variable, does never work correctly in Windows, use a - cp.

    When you use the command of the java compiler, javac, the directory you specify in any re - automatically also taste in the path of the class.

    >

    When you generate a .jar file, you only need to list the directories of first level, cf jar them load recursively.

    It doesn't matter if I have copies of all the class files of their package in a single directory locations,

    Yes, he does. The pot must take into account the packages directory structure. If you "flatten" the tree that he finds nothing in the jar.

    Change directory to the root of your tree of class and

    jar cf NTC.jar us
    

    had to do it. (At least without manifest).

    If a directory appears in the list of cf jar files, then it is responsible for recursively. In this case, no ambiguity are needed.

    >

    I hate to sound like a noob, but this kind of times things package could be more trouble than its worth. Let me rephrase. The learning curve to get packages to work is much steeper than expected.

    Very few people these days is using the raw command line interface. With an IDE or an Ant it is all handled automatically, and both are available for free.

    But it is good to understand the first command line interface.

    It is strongly advised not not to use the "default" package at all.

  • Need for external to Facebook, Twitter and linked in jar file

    Hi all

    Can someone tell me where I can get the external jar file or SDK for Facebook, Twitter and LinkedIn?

    I use OS 5.0. If any got related package that please send it through '[email protected] '.

    Thank you

    Neeraj Chauhan

    the facebook sdk is available at http://us.blackberry.com/developers/started/facebook.jsp

    for twitter, you can use twitterme with xAuth.
    oAuth also seems possible, see http://supportforums.blackberry.com/t5/Java-Development/twitter-integration/m-p/1345335#M176988 etc.

    don't know any api of the linked in.

    You can also use the search feature to find answers to questions like that.

  • Attempt to package a jar of shared library in the ear file. error wlappc

    I try to deploy files jar like shared libraries and decided to follow the recommendation to wrap the pots inside the separate ear files. I include all the modules in the ear, because each of them is designed to be deployed as a shared library. Jar files are placed in the APP-INF/lib directory. The manifest file in the directory META-INF of the ear contains name information and the version of the extension that I would use for these pots. When I run wlappc in my build the wlappc generates an error. I ran weblogic. DDConverter on the ear and the same error was generated. See below. Apparently, the error is caused by the fact that I do not declare all modules in the application.xml file. I found several examples of how package libraries with the help of a war. Even looking at the files in the C:\bea10.3.3\wlserver_10.3\common\deployable-libraries . I found no examples using the Archives of the ear.

    My question is how can I do this. I'd rather do not creation of dummy modules. The documentation seems unclear to me in this area. I would really appreciate the help on this ASAP.

    I use Weblogic Server 10.3.3


    DDConverter error message

    + < 30 August 2010 11:12:00 CEST > < error > < J2EE > < BEA-160197 > < cannot load the descriptor weblogic.application.ddconvert.ConvertCtx$VJarResourceLoader@17590db finder: weblogic.utils.classloaders.CodeGenClassFinder@17943a4 annotation: null module /META-INF/application.xml. The error is weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND.
    problem: cvc-complex - type. 2.4 c: expected for item 'module @http://java.sun.com/xml/ns/javaee' before the end of the item application @http://java.sun.com/xml/ns/javaee content: < null >
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.createDescriptor(MarshallerFactory.java:155) +.
    + weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768) +.
    + weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301) +.
    + weblogic.application.ddconvert.EarConverter.convertDDs(EarConverter.java:59) +.
    + weblogic.application.ddconvert.DDConverter.runBody(DDConverter.java:155) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:158) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:115) +.
    + weblogic.application.ddconvert.DDConverter.main(DDConverter.java:175) +.
    + weblogic. DDConverter.main (DDConverte +)

    My Application.xml. The problem persists once I deleted the < library-directory > element.

    + <? XML version = "1.0" encoding = "UTF - 8"? > +.
    + < application xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" +.
    xmlns = "http://java.sun.com/xml/ns/javaee" xmlns:application = "http://java.sun.com/xml/ns/javaee/application_5.xsd".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd".
    ID = 'Application_ID' version '5' = >
    + < display name > coreEar < / name >.
    + coreEar < description > < / description >.
    + APP-INF/lib < library-directory > < / library-directory > +.
    + < / application > +.

    My weblogic application. XML

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < wls:weblogic - application xmlns:wls = "http://xmlns.oracle.com/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd" > +.
    + < wls:application - param > +.
    + < wls:param - name > webapp.encoding.default < / wls:param - name > +.
    + < wls:param - value > UTF-8 < / wls:param - value > +.
    + < / wls:application - param > +.
    + < wls:fast - swap > +.
    + < wls: activated > true < / wls: activated > +.
    + < / wls:fast - swap > +.
    + < / wls:weblogic - application > +.

    My EAR/META-INF / "MANIFEST. MF.

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic
    Specification-title: coreEar
    Specification-vendor: Picot Entertainment Systems, Inc.
    Specification-Version: 1.0
    Implementation-title: coreEar
    Implementation-vendor: Picot Entertainment Systems, Inc.
    Implementation-Version: 1.0
    Extension name: com.picot.sempre
    WebLogic-Application-Version: v0.1b

    My APP-INF/lib/corelib.jar/META-INF/ manifesto

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic


    My EAR archives broken

    coreEar.ear
    + > APP - INF +.
    -> classes
    -> lib
    -= coreLib.jar
    -> META-INF
    -= MANIFESTO. MF
    -> com /.

    + > META-INF +.
    -= MANIFESTO. MF
    -= application.xml
    -= weblogic.application.xml

    You must create at least a model Module...
    Because the Standard EAR file must contain at least one valid... WAR... EJB jar... .or an ordinary Java Module.

    Please rerfer to: http://weblogic-wonders.com/weblogic/2010/06/22/how-to-build-ear-application-for-weblogic/
    Your Exception clearly said... There is no present valid Module in your "application.xml" file which is the root cause of this issue.

    NOTE: Still, if you do not want to create a Module inside your Application of EAR... then you can go ahead with the optional Packages. Optional packages also provides the same functionality as shared libraries... In this fit you can deploy a Plain Jar file on the server as an optional package, and other Applications can make reference to it. Like this: http://weblogic-wonders.com/weblogic/2009/12/06/optional-packages/

    To see an example of it, you can do refers to: http://forums.oracle.com/forums/thread.jspa?messageID=4439423 during the last answer of mine I have Pasted a link to Test case that I've developed for demonstration... http://www.4shared.com/file/aaudoKO-/Hibernate_Shared_Lib_Demo.html (around of-2, 1 MB size)

    The J2EE specification says: you must have a valid Module (war, ejbjar or simple Module Java) defined in the application ".» XML"of your Enterprise Application.
    .
    .
    Thank you
    Jay SenSharma
    http://WebLogic-wonders.com/WebLogic/ (WebLogic wonders are here)

  • After a few recent updates (7 and 8) when I type a search term in the awesome bar, it doesn't automatically did a google search, it gives an error saying that firefox could not find an executable .jar file. How can I fix it?

    When I got firefox at the end of the version 3 or 4, he had the function to redirect any search I typed in the awesome bar in a google search. I loved, but recent updates it repeat myself "Firefox can't find the jar file: file: / / / C:/Program Files (x 86) /Mozilla Firefox/omni.jar!/chrome/en-US/locale/browser-region/region.propertieshello. '" How can I solve this

    Try this:

    In the address bar, type "subject: config", without the quotes

    then

    Press the Enter key

    then

    in the filter window, type "Keyword.url" (without the quotes)

    then

    Double-click the 'Value' field and type "http://www.google.com/search?q=" (without the quotes)

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • How to add the JAR files and configuration files to the CLASSPATH when running?

    QUERY:

    During execution, I need to load JAR files and relevant config (.cfg files) and file .properties files in the CLASSPATH and run a specific one of the JAR java program that is available in the CLASSPATH.


    Please send me details of Java API or an example of java program to implement the use case above.


    Thanks in advance.


    During execution, I need to load JAR files and relevant config (.cfg files) and file .properties files in the CLASSPATH and run a specific one of the JAR java program that is available in the CLASSPATH.

    Please send me details of Java API or an example of java program to implement the use case above.

    You do not add to YOUR classpath once your application is launched.

    You create a NEW process for the application you want to run and provide an appropriate environment for it to run in-including the CLASSPATH or PATH environment variables.

    The Java API for the ProcessBuilder class has a simple example that shows how to create the arguments and to launch an external application.

    ProcessBuilder (Java SE 7 platform)

    There are also MANY other examples of the use of ProcessBuilder; just search the net.

  • Reissue and safe generation of jar files?

    Hi all.

    I was invited to recreate a link to exe files, as in:

    adrelink.sh force = y 'ad adadmin.

    Then to

    Regenerate the JAR files with FORCE option

    Regenerate forms and pll including the opening of FNDSCSGN.fmb in designer forms (f60desm) then connect to the db and select "compile all '.

    Recompile invalid objects

    Recreate a link to f60webmx (adrelink.sh force = y "fnd f60webmx") grant to recreate and synonyms recompile menus Recompile messages Ran "copy files to destinations.

    recompile the custom.pll

    As part of a SR. Is it safe to make a LIVE during opening hours system?

    Yes, I asked the analyst, I just wanted to check also with the community.

    Thank you.

    11.5.10.2

    11.2.0.3

    RHEL 5

    DA

    Dan,

    Stop application services before implementing the steps above and judge after opening hours.

    Thank you

    Hussein

  • reading the images and icons from jar file

    Hello
    I applied the tutorial in the corner of the adf
    [read the image of the jar file | http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf]
    and deploy it in logical built-in web server
    my version 11.1.2.3 Jdeveloper

    but the images did not appear
    For example: when I drag the button and try to specify icon for this button no image for the library referance

    How can I fix this problem or missing steps in the application of the link above?
    Thank you

    I just ran this tutorial recently, took a few tries but everything worked according to the instructions in the article. You should check your steps on. set install to the top of the jar, add it to the project lib reference and use "/ adf/images / ' as the value of the icon. That should be all you need to do at the moment of the conception of the image displayed when running, you need to install the pot to your embedded wls and also change your weblogic - application.Xml.

  • Jar file corrupted in C: how fix this? __Can Windows 7 safely install on Vista Home Premium?

    You want to download Firefox. Jar file error appeared.

    Hi Rene Englehart,

    Ensure that you have downloaded the correct and complete package for your computer

    A file JAR (or Java ARchives) brings together several files into one.

    Step 1: Try to install the program as administrator - right click on the Firefox installation files (configuration files) and select run as administrator , click continue if you are prompted to confirm.

    You can post your query on the Firefox forum

    Firefox forum link
    http://support.Mozilla.com/en-us/KB/support+website+forums

    Regarding the installation of Windows 7

    There are two options to choose during the installation process of Windows 7:

    Update: this option replaces your current version of Windows with Windows 7 and keep your files, settings and programs on your computer.

    Custom: this option replaces your current version of Windows with Windows 7, but does not keep your files, settings and programs. It is sometimes referred to as a new installation for this reason.

    Note: It is recommended for the data backup before performing any installation.

    For more information, please visit the link below

    Installation and reinstallation of Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • An Extension using an external JAR file

    Hey,.
    I read this blog entry:
    -[http://blogs.oracle.com/jdevextensions/entry/adding_exteneral_jars_to_an]
    and the thought that maybe that is it, but unfortunately will only work if the jar is deployed with the installation of JDeveloper.
    I use in my extension jar files that I made myself, and even if I can get around this problem my copy just jar files to hand to the place where they are supposed to be, if I export the extension, it will not work on other PC.

    So what I need to do, it's somehow include the jar file in the deployment. I tried to add a new group of files for the libraries in the deployment window, but unfortunately, that has not helped at all.

    Thank you for your time and I hope someone can help me.

    Couple of things possible.

    It is probably just a thing of packaging in the forums, but make sure externally: part is all on the same line as the Bundle-Classpath entry.

    Also remove the space between the "external: ' and the ' $ORACLE_HOME$".

    One last thing, is in the previous post, you got the mon.jar in a 'test' under extensions folder.. In this example, it seems you are trying to call it directly from the Extensions folder.. This could be the main issue.

    Let me know if these elements help at all.

  • ODI-error when importing jar file

    Hi all

    We need in ODI where we need to sort the files based on timestamp. I wrote a java code for this and created a jar it. After that, I did the procedure in my local ODI below.


    I m using ODI 11 g and jdk 1.6

    1. place the jar file in the D:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers folder
    2 restarted my Agent
    3 created a logical schema under Java BeanShell physical technology
    4 creates a procedure and has done the procedure in below.
    (i) chosen Java BeanShell as «Command on target» technology
    (II) associated with the logical schema (created in step 3).
    (III) in the tab order that I wrote the code below

    com.file import. *; It's the package structure in the jar
    FileMergeUtil f = new FileMergeUtil (); It's the class
    f.Filesort (); This is the main method


    After completing the steps above, I tried to run this procedure and I got the below error

    java.lang.NullPointerException
    at com.sunopsis.sql.SnpsConnection.isTerradata(SnpsConnection.java:1172)
    at com.sunopsis.sql.SnpsQuery.getPreparedStatement(SnpsQuery.java:959)
    at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java:1872)
    at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java:554)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeQuery(SnpSessTaskSql.java:3078)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrdersScriptingOder(SnpSessTaskSql.java:1214)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2762)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Some can help solve this problem?

    Thank you
    John

    Hello

    Must be 'Java BeanShell' technology?

    What I do is use the "Jython" technology So before you import the jar, import bones. Also remove the ';' at the end of your lines.

    For example:

    Import os
    import HTTPUtil - class

    point endpoint = "#REQUEST_URL."
    data = " < %="odiRef.getSchemaName" (« logique »,="" « w")%=""> data.xml".
    output="<%=odiRef.getSchemaName ("LOGIQUE","D")%>/data.csv"

    a = HTTPUtil.HTTPRequestPoster () - method
    a.postData(data,endpoint,output)

    See you soon

    BOS

  • 'Upgrade WebLogic jar file' still missing 11.1.2.1

    Hi all

    I through the installation guide to install 11.1.2.1 & found that, in the assemblies required for the services of the Foundation, it is an assembly called "Upgrade WebLogic jar file" mentioned in the tutorial. When I extracted the Foundation

    files 1-7, I don't see this assembly in this excerpt. I extracted even the publication of additional content & I have not see this assembly in the folder where I extracted.

    Thank you!

    It is mandatory and yes the extract in the same folder. While they improve the documentation available in this version, they have missed a fairly heavy reliance in the form of the Weblogic software.

    You will need the following packages for installation of planning:
    Oracle Hyperion Enterprise Performance Management System Installer, Fusion version 11.1.2.1.0 for Microsoft Windows (64-bit)
    Oracle Hyperion Foundation Services version 11.1.2.1.0 for Microsoft Windows (64-bit) part 1 of 7
    Oracle Hyperion Foundation Services version 11.1.2.1.0 for Microsoft Windows (64-bit) part 2 of 7
    Oracle Hyperion Foundation Services version 11.1.2.1.0 for Microsoft Windows (64-bit) part 3 of 7
    Oracle Hyperion Foundation Services version 11.1.2.1.0 for Microsoft Windows (64-bit) part 4 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 5 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 6 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 7 of 7
    Oracle Hyperion calculation Manager version 11.1.2.1.0
    Oracle Hyperion Enterprise Performance Management architect, Fusion Edition Release 11.1.2.1.0
    Oracle Essbase Release 11.1.2.1.0 part 1 of 2
    Oracle Essbase Release 11.1.2.1.0 part 2 of 2 for Microsoft Windows (64-bit)
    The customers Oracle Essbase release 11.1.2.1.0
    Oracle Essbase Spreadsheet Add-in version 11.1.2.1.0 for Microsoft Windows
    Oracle Hyperion Financial Reporting, Fusion Edition Release 11.1.2.1.0
    Oracle Hyperion Financial Reporting Studio and print server, Fusion version 11.1.2.1.0 for Microsoft Windows
    Oracle Hyperion Enterprise Performance Management Reporting and analysis of the main components of output 11.1.2.1.0
    Hyperion Web analysis Release 11.1.2.1.0
    Oracle Hyperion Planning, Fusion Edition Release 11.1.2.1.0
    Oracle Hyperion Planning, Fusion edition offline planning Module version 11.1.2.1 for Microsoft Windows
    Oracle Hyperion Financial Management close release 11.1.2.1.0
    Oracle Hyperion Enterprise Performance Management System additional content version 11.1.2.1.0

    Kind regards

    John A. Booth
    http://www.metavero.com

    Published by: Jbooth on April 28, 2011 05:13 - specific package Weblogic removed from the list.

  • can not locate the jar file that contains com.bea.cache.jcache.cacheLoader

    Hello

    I'm trying to create a CEP Application in which an adapter look in the Cache. I knew that in this case, the adapter must implement the interface "com.bea.cache.jcache.cacheLoader" Interface. I see that this interface and the package (com.bea.cache.jcache) is not available in the file wlfullclient.jar.

    Can tell me where can I find the Jar file that contains the perl package, I mean any place where I can download or a steps I follow to get this jar file.

    Thanks in advance for your time,
    Regnier

    Published by: Raja Kumar April 1, 2010 08:19

    Hi reda,.

    It should be in modules/com.bea.core.cache_1.5.0.0.jar or a file with same name

    Andy

Maybe you are looking for