Linux, J2SE, J2EE

I have dowloaded both JDK Standard and Enterprise for Linux. I have installed them both successfully. Im having problems setting the paths. I do not have a /etc/profile file. What can I do to make everything work ok. Ive tried editing the .cshrc file, .bashrc file, all do not work. Im using Red Hat 7.1. If anyone has any suggestions, it would be very much appreciated.

You should have a /etc/profile.d directory. You may write the commands to a file in the directory, e.g.
<start of /etc/profile.d/javasetup.sh>
#!/bin/bash
export JAVA_HOME=/usr/java/whatever
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.
<end of /etc/profile.d/javasetup.sh>
Then "source /etc/profile.d/javasetup.sh" and the environment should be set. When you next log in, you won't have to do the "source ..." command. That is only needed to apply the settings to the current environment.
Bhav

Similar Messages

  • Design Patterns that are used in standard j2se/j2ee classes/interfaces

    Hi All,
    I am understanding following design patterns (used within standard j2se/j2ee):
    Adapter
    Facade
    Composite
    Bridge
    Singleton
    Observer
    Mediator
    Proxy
    Chain of Responsibility
    Flyweight
    Builder
    Factory Method
    Abstract Factory
    Prototype
    Memento
    Template Method
    State
    Strategy
    Command
    Interpreter
    Decorator
    Iterator
    Visitor
    I want to see if/where these design patterns are used in j2se/j2ee classes/interfaces. i am looking for few examples of standard java classes/interfaces/cases where these design patterns are used by jdk developers.
    for e.g.
    WindowAdapter class is an example of Adapter DP.
    JOptionPane is an exmple of Facade DP.
    MouseListener is an example of Observer DP.
    Similarly, where can find examples of jdk classes/interfaces of the remaining DPs.
    I searched a lot of books, but they explain the DPs by creating their own classes/interfaces.
    I would like to see where these DPs are already utilised in std j2se/j2ee
    thanks,
    Madhu_1980

    877316 wrote:
    I searched a lot of books, but they explain the DPs by creating their own classes/interfaces.
    I would like to see where these DPs are already utilised in std j2se/j2eeWell, you can go through the javadocs first, they sometimes mention the pattern used.
    Then you can get the sources for the jdk and go through the classes yourself, identifying the patterns.

  • What are the diffrences among J2SE,J2EE, and J2ME ?

    Could one explain me..what are these terms and terms like JDK,SDK and what are the diffrences and similarities.I have installed J2sdk1.4.1 in my computer.I have written some programs and run them.Applets too.What are the extra benifits that I can take if I install J2EE.In other words what are the things that J2SDK is lacking when compared to J2EE?
    Please explain..I am quite new to java.
    Regards..Saman

    J2ME - Java 2, Micro Edition.
    This is a specification, a developement platform for Java enable device, it is mostly for mobile devices,such as PDA, handphone.
    J2SE - Java 2, Standard Edition
    This is a specification, a developement platform for developing standard service, which is software. Such as graphic user interface, input output device, applet and more.
    J2EE - Java 2 Enterprise Edition.
    This is a specification, a developement platform for enterprise system, server side program. and examnple is Java Server Page, Java Servlet, Enterprise Java Bean and more.

  • Directory structure for a J2SE+J2EE project: suggestions are very welcome

    Hi, I have to start coding and organizing the CVS tree of an already mature project which is J2SE. This J2SE project can be described as a "core engine" for something else, and is a quite large project, and up to now has only a command line User Interface. I organized the dir structure as this:
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    when I ant compile, all the .classes will be done in the "build" directory (reflecting the structure in the "src" dir):
    /build/
    /build/java/<package>/....../*.class
    /build/demo/<package/...../*.class
    /build/test/<package>/..../*.class
    I am happy with this, but now comes the issue: a web interface to use this core engine (it will have the same package namespace) is in developing progess, so I have to put somewhere the *.jsp, the WEB-INF dir with web.xml and servlet sources: how would you do this? And where would you let Ant put the compiled servlet classes?
    I can modify the previous directory structure to accomodate the J2EE part, this is really not a problem!
    Thanks to who can suggest me a clean solution
    Alessio

    Create a web-inf folder at the same level of src and
    jsp folder inside src
    i mean
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    /src/jsp
    /web-infSo, would you put in /src/jsp only the *.jsp?
    And what in /WEB-INF ? What woud you put there? Would you do something like:
    /WEB-INF/web.xml
    /WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
    /WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
    In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
    Is this directory structure anyway what you meant or not?
    alessio

  • Linux J2SE 1.5.0 install w/o graphical interface

    Here's a special situation from the geniuses at Sun.
    1. Bundle NetBeans for the J2SE. Never mind that people may want a 'server' installation.
    2. So, I try to run it with the installer with the -console option on Linux (Fedora Core 4):
    $ ./jdk-1_5_0_04-nb-4_1-linux.bin -console
    The wizard cannot continue because of the following error: Invalid command line option:
    console is not supported (1001) (403)
    Brilliant! So anyone have any ideas on how I can install J2SE 1.5 on a server that has no graphical installation?

    I'm sorry, i think your attitude problem has got the better of your judgement.
    I followed Fedora's specific installation instructions, but ran into some of the various problems people have been experiencing with JDK on FC4. If you're unfamilier with typical JDK problems just do a google search...

  • J2SE/J2EE

    What's the difference between the Standard Edition and Enterprise Edition? Any advantages or disadvantages? I just wanna know which one I should download. Tnx!

    What's the difference between the Standard Edition and
    Enterprise Edition? Any advantages or disadvantages? I
    just wanna know which one I should download. Tnx!Learn The Standard Edition First.
    http://java.sun.com/j2se/
    Learn This Later. It depends on the Standard Edition.
    http://java.sun.com/j2ee/
    (Yes, I need the Duke Dollars) ;)

  • Installing J2SE & J2EE

    I'm running Apache Tomcat and J2SE to run JSP pages and from what I've read I need to also have J2EE installed to do certain "enterprise" things. Is this true and how do I install both to run on the same machine?

    You need to have the j2ee.jar in your classpath. You can get it an Sun's download site.

  • Oracle 9iAS: J2SE, J2EE

    Which version(s) of J2SE does 9iAS support: 1.1, 1.2, 1.3, 1.4?

    See the FAQ on OTN (http://otn.oracle.com/products/ias/htdocs/9iasfaq902.html), Section 5.0 for details about J2EE 1.3 support.
    Certification for J2EE 1.3 is currently underway and will be completed in a month or so. A preview release of OC4J stand alone is available at: http://otn.oracle.com/tech/java/oc4j/content_preview.html
    Thanks,
    Ashesh Parekh
    Oracle9iAS Product Management

  • Linux j2se 1.4.2 INTERNAL ERROR on Browser End: no manager for initializing

    I have just installed j2sdk1.4.2_04 and NetScape 7.1 on Redhat Linux 9. After following the instruction to enable java in the browser by issuing the command:
    ln -s /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610/libjavaplugin_oji .
    (note the final period)
    then restarting browser, I get the following message:
    INTERNAL ERROR on Browser End: no manager for initializing factory.
    If I remove the link, the browser starts working again (without java).
    I have looked in the search engines, other people are having this problem, but I did not find the cure there.
    HELP!

    There are two versions of the plugin shared object, one for elder and one for newer versions of the C compiler. Did you pick the right shared object? If you are not sure, try the other one.
    /usr/lib/jdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so
    /usr/lib/jdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

  • JVM, J2SE & J2EE - Confused!

    Hi,
    I was reading specs somewhere on a java application. It says:
    - Development: JDK� 1.3.1
    - Deployment: JDK 1.1.8 or higher (JDK 1.3.1 recommended)
    1) So does this mean that any J2SE 1.3.1 code you write will run on JDK 1.1.8 or above?
    2) So could I code for J2SE 1.4 and have it run on basically any Application Server? (WebLogic, WebSphere, Oracle, etc.) ? Or do I have to decide between using J2SE 1.3 and J2SE 1.4 ?
    I want to use J2SE 1.4 but am afraid that it might not run on some application servers.

    any J2SE 1.3.1 code you write will run on JDK 1.1.8 or aboveOf course generally speaking not (though it might hold for some well-defined environment like a given IDE). That is generally not even true for 1.2; it has for example the soft/weak references, the collections, swing etc. that are incompatible with java 1.1; 1.3 has besides the Proxy etc.

  • J2SE to J2EE

    I'm considering a jump from J2SE to J2EE. My question is,
    What are the main differences between the two?

    "I have been using databases in some of my apps."
    JDBC lies completely inside J2SE, J2EE does not add anything to it.
    "I would like to add a servlet to my latest app."
    If you are looking into using JSPs, Servlets, and the rest of J2EE to replace PHP server applications, then you are on the right track. If you just want to use a Servlet in a regular, desktop app, you are probably looking at it wrong (adding the necessary Servlet Container (web server) would be a huge footprint to the app, and prolly something that your users would not want on their computer...)
    "...explain some of the advantages of using enterprise instead of the standard edition"
    You don't use it instead of the standard edition, you use it on top of the standard edition. You use it to write web applications. That way, you have one centralized server that does the work. The user has versions of a client (a web browser or any client that can read the data you send... this could be a J2SE desktop app if you wanted...) that the user interacts with, and which in turn interacts with the server which does the work.
    So J2EE is about layered control.
    1) The client app displays info to the user and provides a means of interaction
    2) The server stands as a listening device that sends messages to the correct part of the app and back to the user.
    2) 1) The Servlets act as a control mechanism that runs the business logic (work)
    2) 2) Other layers may handle data access and storage (databases, XML. EJBs?)
    2) 3) Other layers may handle dispaly generation (JSPs) or return information (JMS)
    The advantage is that your work is done in one place. Everyone who uses the app doesn't need to update everytime the application does. Every user doesn't need to have a DB on their computer. Users can communicate and share information more efficiently. At the same time no user gains access to someone else's data because the data storage and access is twice removed from the client...

  • Linux install

    Hello, I've little background with combining Linux and Java, but I'm writing a program that will need to be run on a linux server. It's being completly developed on a windows platform and will be tested on a linux server.
    Can anybody tell me which install I'll need to have in the Linux machine. J2SE, J2EE, or just some RE.
    And if anyone knows of program design differences attributed to windows to linux crossovers in Java it'd be appreciated.
    I work almost exclusivly in windows with Java so I apologize for any stupidity on my part.

    Make sure the version of the JVM is compatible with
    your program.
    java -version (I think)Yes, it is much better to have compatible versions.
    Note, however, that (so far) it has appeared that each
    Java version has been pretty compatible with previous
    ones, except for the Swing classes. So if you develop
    in 1.4.0, you can pretty much bet that it'll run just
    fine with 1.4.2 - YMMV.
    To answer the OP's question, if all you're planning on
    is just running a standalone Java program (e.g.
    server), then all you need is the JRE (runtime). If
    you're going to be compiling, then you need the SDK.
    If you don't know the difference between J2SE and J2EE
    (unless that was a typo of some kind), then you don't
    need J2EE. ;DOP is already having issue with Java compatibilty RE: another thread. My advice is based on this...

  • NW04 - Upgrade J2EE to SP14

    Hi,
    I have a strange problem when I try upgrade my Linux TestDrive from SP12 to SP14.
    Hostname: NW
    The installation is working on SP12. I’m able to deploy both from NWDS and SDM.
    The sapinst is executed with the remotehost parameter: sapinst SAPINST_USE_HOSTNAME=nw4host
    The upgrade goes smooth until ‘Deploy via SDM/J”EE’ where I get a ‘Error: Unable to compare host[nw4host] and host[tetasoft-002] Throwable: java.net.UnknownHostException Throwable message: tetasoft-002: tetasoft-002’
    The strange thing is that my laptop is called tetasoft-002.
    Any idea how to solve this? Is there a parameter I should use?
    callSdmViaSapinst.log:
    Nov 1, 2005 1:09:39 PM   Info: The deployment prerequisites finished without any errors. All items are correct.
    Nov 1, 2005 1:10:00 PM   Error: Unable to compare host[nw4host] and host[tetasoft-002] Throwable: java.net.UnknownHostException Throwable message: tetasoft-002: tetasoft-002
    Nov 1, 2005 1:10:00 PM   Info: Saved current Engine state.
    Nov 1, 2005 1:10:00 PM   Info: Error handling strategy: OnErrorStop
    Nov 1, 2005 1:10:00 PM   Info: Update strategy: UpdateLowerVersions
    Nov 1, 2005 1:10:00 PM   Info: Starting: Update: Selected development component 'SQLTrace'/'sap.com'/'SAP AG'/'6.4014.00.0000.20050818152214.0000' updates currently deployed development component 'SQLTrace'/'sap.com'/'SAP AG'/'6.4012.00.0000.20050331133103.0000'.
    Nov 1, 2005 1:10:00 PM   Info: SDA to be deployed: /usr/sap/NW4/DVEBMGS00/SDM/root/origin/sap.com/SQLTrace/SAP AG/6.4014.00.0000.20050818152214.0000/SQLTrace.ear
    Nov 1, 2005 1:10:00 PM   Info: Software type of SDA: J2EE
    Nov 1, 2005 1:10:00 PM   Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
    Nov 1, 2005 1:10:00 PM   Error: Unable to compare host[nw4host] and host[tetasoft-002] Throwable: java.net.UnknownHostException Throwable message: tetasoft-002
    Nov 1, 2005 1:10:01 PM   Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Nov 1, 2005 1:10:01 PM   Error: Aborted: development component 'SQLTrace'/'sap.com'/'SAP AG'/'6.4014.00.0000.20050818152214.0000':
    CPO data could not be get.
    com.sap.sdm.apiint.serverext.servertype.deployment.DeploymentActionException: Error: Caught the following error or exception: "com.sap.sdm.apiint.serverext.servertype.deployment.DeploymentActionException"
    Additional error message is:
    Caught exception from deploy service of SAP J2EE Engine. Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.
    com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [nw4host] with user name: [J2EE_ADMIN]
                                                      Check your login information.
                                                      Exception is:
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext instance.]
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineJ2EE620OnlineDeployerImpl.checkLoginCredentials.DMEXC)
    Additional error message is:
    com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [nw4host] with user name: [J2EE_ADMIN]
                                                      Check your login information.
                                                      Exception is:
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext instance.]
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineJ2EE620OnlineDeployerImpl.performAction(DeploymentActionTypes).NO_CPO)
    Nov 1, 2005 1:10:02 PM   Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    Nov 1, 2005 1:10:02 PM   Info: -
    Deployment was successful -
    Nov 1, 2005 1:10:02 PM   Info: Summarizing the deployment results:
    Nov 1, 2005 1:10:02 PM   Error: Admitted: /home/hda/SAP Download (Linux)/test/J2EE-RUNT-CD/J2EE-ENG/ONLINE/SAPJTECHS14_0.SCA
    Nov 1, 2005 1:10:02 PM   Error: Processing error. Return code: 4
    Best regards
    Henrik

    Gregor,
    I have exactly the same symptom in SP9 --> SP13 on clustered Solaris WebAS/EP installation. I am curious as to why you think it's to do with DISPLAY variable - though I wouldnt be at all surprised by some of the imaginings that sapinst has.
    In my case, I get the RemoteLoginContext problem, but no 'comapre host' message. Simply that the J2EE administrator credential check failed. At this time, thye J2EE is up and running, all services and apps are in the started/running state; the SDM is stopped (but gets started by the deploy task of sapinst). There is no corruption of the secure store password so far as I can gather.
    My installation sounds somewhat similar to Henrik's:
    Physical Host : spvcs53prod
    Virtual SCS IP (on same host): spscs50prod
    Virtuaal CI IP (on same host):  spci50prod
    ..\sapinst SAPINST_USE_HOSTNAME=spci50prod SAPINST_START_GUI=false
    The CI is on a virtual host too, for system admin and monitoring reasons, though it is not in a switchable cluster group. I have had some problems for example with the delivered startsap and stopsap scripts. These cannot locate the required hostnames accurately on network adapters as the output of the ping command varies depending on the physical/virtual setup. (start.sopsap parse the ping result to verify hostnames). Maybe sapinst is doing something similar in these installation situations?
    Any help appreciated, as we are now stuck delivering a production cluster !
    Thanks.

  • Any tool like Swing for J2EE?

    Good afternoon, to see if I can clarify with your help.
    I'll do a migration to Java application that we use in my business. I will not go much into detail, but basically it is an application that uses multiple users from several different profiles, so only one application that I have thought about doing is a "web platform" where it all together.
    My knowledge of Java are regular, basic know-post-university J2SE, J2EE and little else. I started to do small things with JSP and good things seem to me comes in handy for my project, I have only one problem I have not found the solution (due to my ignorance). The problem is I do not know how to edit the forms-page visually. I do not know if there is anything Swing style, something like "design mode" where you can drag buttons, checkboxes, images ... but oriented to web. I've come to ask what I need is an editor such Dreamweaver, and then take the HTML to NetBeans ... the truth is that I'm lost.
    For that, I need to know how to edit J2EE developers websites, whether directly in HTML or PHP, whether via a Java tool or by external programs as Dremweaver web editing, or otherwise not know.
    Thank you very much.

    Forget that visual editors exist. If you want to do dynamic web programming, learn to do it through code, not by clicking. This means you'll have to know how to read, write, change and debug HTML, CSS and Javascript; the very minimal set of skills required for any web developer. There is nothing stopping you from using a tool like Dreamweaver to create the basic HTML/CSS framework, but it stops there.
    To make that process easier you may want to check out the Eclipse IDE as it has the ability to instantly make visual what you create without having to open your application in a browser, which can be a big help. That will add another thing to your TODO list though, learning how to properly use an IDE like Eclipse; you have to crawl before you can walk.

  • Adobe forms on Linux?

    For all of my reading, I can't find a system requirement for the Adobe forms designer with respect to NWDS.  Adobe's website states that Windows XP is required for Life Cycle Designer, but that's not helping me.  Is the plug-in for NWDS also Windows-only?  My understanding of Eclipse is that it's a OS agnostic system....
    Can someone help me out?

    Hi Ken,
    while your statement on Eclipse and the NWDI is correct (and the Adobe document services can also run on a Linux-based J2EE Engine), the Designer is, unfortunately, a Windows-only tool.
    To my knowledge, there are no plans by Adobe to support it on other platforms in the foreseeable future either.
    Markus Meisl
    SAP NetWeaver Product Mmanagement

Maybe you are looking for

  • Processing a File (From a Folder Action) Through an AppleScript

    I have a Folder Action enabled which automatically uploads images placed in a folder to a FTP server. It works great when I'm at home on my own network, but if I'm somewhere with a firewall that prohibits connecting to my FTP server (i.e. work) or if

  • How to change a contacts name.

    I have been trying to change my girlfriends name in my phone. I have 2 separate contacts for her. One is connected to Facebook and the other isn't. When I change it to the new name it will show the new name on the contact list but not in a message. I

  • List of Adobe forms in SAP standard

    Hi Experts, First: is there a list with all available Adobe forms in SAP standard? If possible sorted by Solution (ERP, SRM, CRM, SCM, ...) and module (SD, MM, PM, ...). Second: is there a roadmap for today not available forms, when they will be migr

  • Error in psa  quality system

    hi all, i am getting the problem with psa. 2 records i am getting worng. loading the data from r/3 system. Record 181 :0IOBJSV : Data record 181 ('0CorD '): Version '0Cor ' is not valid Record 182 :0IOBJSV : Data record 182 ('0CorE '): Version '0Cor

  • Is it possible to do this in Quartz Composer, make globe with spinning text

    This seems like a poor place to post this question. The question is though, is it possible to use a transparent PNG or similar image that is 3D and have words rotate around it?