Basic questions on Java platform and JDK

Hello,
I have a few questions, might be very elementary. Please clarify.
(Tried in "New to Java" Forum....but did not get much response)
What I know is : A "Java Platform" is composed of the Java language, a JVM, and the APIs. There is a spec. for the language, and another spec for JVM. Now, are there spec.s for the API as well ?
Another related question is : where exactly do the various flavours of the Java Platform (J2SE, J2EE, J2ME) differ ? I have seen some explanations where it seems to say that these editions have been created to give more appropriate support to different areas of applications. But, what I know to know is : what exact component of the Java Platform differs from one edition to another - language features, or the JVM, or the APIs ? And what is the kind of the change ?
Another question : what is it, that differs from one JDK release to another, say from J2SE 1.3 to J2SE 1.4.0 ?
I think the Java language spec itself rarely changes (Is this right?). Also the VM spec rarely changes (is this correct ?). So, is it that only the APIs change (new classes added, old ones modified, etc.) ?

Hello,
I have a few questions, might be very elementary.
Please clarify.
(Tried in "New to Java" Forum....but did not get much
response)
What I know is : A "Java Platform" is composed of the
Java language, a JVM, and the APIs. There is a spec.
for the language, and another spec for JVM. Now, are
there spec.s for the API as well ?There are some specs which the API fulfills (see your other thread for examples). But not all classes in the API is covered by a specification.
Another related question is : where exactly do the
various flavours of the Java Platform (J2SE, J2EE,
J2ME) differ? What do you mean? There are different specifications for the different editions / flavours. They can differ both in API and VM.
I have seen some explanations where it
seems to say that these editions have been created to
give more appropriate support to different areas of
applications. But, what I know to know is : what
exact component of the Java Platform differs from one
edition to another - language features, or the JVM,
or the APIs ? All of them can differ. (Does it matter?)
Another question : what is it, that differs from one
JDK release to another, say from J2SE 1.3 to J2SE
1.4.0 ? Read the relese notes. New classes, some new methods, and also minor changes to the language. New JSRs had also been implemented.
I think the Java language spec itself rarely changes
(Is this right?). Depends on what you mean by rarely
It changed from 1.0 to 1.1, from 1.3 to 1.4 and from 1.4 to 1.5.
Also the VM spec rarely changes (is
this correct ?).It has changed a few times.
So, is it that only the APIs change
(new classes added, old ones modified, etc.) ?No
Kaj

Similar Messages

  • Basic question about Java, UNIX and OAS

    Hi,
    Can I create an appication that contains GUI components like testbox and textfields etc...and then load/import it into OAS?
    Can I again, create such an GUI application and then load it UNIX platform and run it?
    The reason I asked because I did create an application which has a frame, a panel and couples of buttons, text fields then ftp it to Unix Solaris, when I ran it with jre command, I got the following message:
    java.lang.NoClassDefFoundError: Javax/Swing/UIManager at cms.CMSApp.main(compiled code) Exception in thread main
    Please anyone help me to clarify this, I don;t if we can do such things but I did not do it the right way? or we cannot do it at all. Thanks for your help
    Minh

    I'm not sure I understand where OAS fits in here.. Is this an applet?
    In any case, it sounds like the JDK version you are using is 1.1.x, and swingall.jar is not in the classpath.
    If it's an applet, then you need to edit the HTML file and add in swingall.jar.
    If it's an application, you need to edit the CLASSPATH environment variable and append the full path to swingall.jar
    (note: in Java2 (JDK 1.2, 1.3) swingall.jar is no longer seperate, it is part of the runtime classes of java, so you don't have to add anything to the classpath)
    Take Care,
    Rob
    null

  • Some basic questions on Java development and NetWeaver CE

    Hi there,
    Can someone please explain for me:
    1. What are the development tools that will help me do Java development in SAP?
    2. Can I use non-SAP Java development tools (e.g. WebSphere or Eclipse) to develop custom extensions?  Are these equivalent to the functionality provided by CE?
    3. Given the options for doing Java development in SAP, are there any situations where I would need to do custom development in ABAP? (Is the Java functionality equivalent to the ABAP functionality?)
    4. Is NetWeaver CE only meant for Java development, or can it also be used for ABAP development?
    regards,
    Eric

    Hi
      for Java development you can user Eclipse or NWDS , which are both and the same .
      And about the ABAP development in CE 7.1 in the developer studio is it not possible .
      you are allowed for the java development .  And about using Non-SAP java development tools
      you can use the tools for java development , may the UI building ..... has to be build  when compared to
      CE 7.1  developer studio
    Developer Studio for ABAP
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7ef5ad90-0201-0010-b2b5-b112ca87e421
      https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/100dac80-f93c-2a10-15a1-a9ac1fd3166c
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40af00ad-8080-2a10-88b5-cc4cec99d8ac
    Thanks

  • Java platform and Java Deployment should be updated but there is no other version, always the warning to update but thats not possible

    Java Platform 7u9 and Java Deployment Kit plug-ins are yellow and asked to be updated.
    The problem is that there is no other version than I have already installed.
    Even if I try to instal this latest version again I've get the message that I already have the latest version.
    The same problem was with Flashplayer where I installed the latest version but three days Firefox asked to update the plugin.
    The last one is now ok but Java Platform and Java Deployment Kit is hopeless.
    Why it ask for an update if there is none?
    What should or can I do? I always be careful and patch my pc if necesserry.
    All my friends who are working with Firefox have the same problem.
    Can anybody tell me whats going on here?
    greetings, Mimi321

    Hi
    There is still an issue for me. When i check to see if add-ons are up to date it identifies "Java(TM) Platform SE 7 U9" as out-of-date and gives me an orange "Update" action. When i hit this it takes me to the Java website giving me "Recommended Version 7 Update 9". This is the one i've already got so i cannot get rid of the orange Update action buttons.
    Furthermore, if i try the link earlier in this thread to test to see which version of Java i should be using it says "Congratulations! You have the recommended Java installed (Version 7 Update 9)" so i'm not sure what this talk of version 7.10 is about?

  • Java Platform and Technologies Take Center Stage at GIDS 2010

    Great Indian Developer Summit 2010 u2013 India's Biggest Polyglot Conference and Workshops for IT Software Professionals
    Bangalore, April 9, 2010: The GIDS.Java Conference and Workshops has announced the complete program of over 50 sessions on the present and future of the Java language and VM, how they are evolving to meet the community's ever-changing needs, and some of the cutting-edge tools, technologies & techniques used for building robust enterprise Java applications today. The GIDs.Java track at Great Indian Developer Summit takes place 22 and 23 April 2010, at the Indian Institute of Science in Bangalore.
    As one of the longest running independent developer conferences in India, GIDS.Java at the Great Indian Developer Summit 2010 is uniquely positioned to provide a blend of practical, pragmatic and immediately applicable knowledge and a glimpse of the future of technology. During 22 and 23 April 2010, GIDS.Java offers a multi-track conference, workshops, expo show floor, and networking opportunities.
    The first keynote at GIDS.Java "Pointy Haired Bosses and Pragmatic Programmers" is led by Dr. Venkat Subramaniam. He speaks about how each of us has a professional responsibility to be objective and make decisions that will help us and our teams be productive and deliver results. Venkat will pick on some fallacies, lay down facts, and discuss how to stay professional and objective in our daily efforts.
    The second keynote of the day explains the practical features that make the Cloud so interesting, and why everyone should start using it in their everyday life. Simone Brunozzi, Amazon Web Services Technology Evangelist, will detail technical examples, business details all mixed with a lot of Italian humor to ensure audience enjoy this talk without a single line of code.
    The third keynote of the day gives an exciting overview of directions in the Java space for Oracle, featuring concrete signs of Oracles heavy investment, a clear concise strategy overview, and deep dives into some of the most interesting pieces of technology being developed in the Java Platform Group today; such as JavaEE, JDK7, JavaFX, and our exciting new visual tools. Featuring demos by a Java evangelism team star, Simon Ritter, this talk takes you top to bottom in Java Technology.
    Featured talks at GID.Web include:
    Good, Bad, and Ugly of Java Generics, Venkat Subramaniam
    Pure Java Ajax: An Overview of GWT 2.0, Marty Hall
    How JPA 2.0 Makes a Good Thing Even Better, Mike Keith
    Building Enterprise RIAs with Adobe Flex and Java, Sujit Reddy G
    Integrated Ajax Support in JSF 2.0, Marty Hall
    Design Patterns in Java and Groovy, Venkat Subramaniam
    A Gentle Introduction to iPhone and Obj-C for Java Developers, Matthew McCullough
    Cloud Computing: Azure for Java Developers, Janakiram MSV
    Ajax Support in the Prototype JavaScript Library, Marty Hall
    First steps to IT Heaven Through the Cloud. Part III: .Java, Simone Brunozi
    Building Web 2.0 User Interfaces for Web Service Models using JSF, Frank Nimphius and Jobinesh P
    Acceptance Test Driven Development, John Tobin and Mohammed Mohsinali
    Architecting Your Java Applications for the Cloud, Praveen Srivatsa
    Effective Java, Venkat Subramaniam
    The Amazing Groovy Weight-loss Plan, Scott Davis
    Enterprise Modeling - from Conceptual Planning to Technical Blueprints, J Sripad
    Java Collections Renaissance, Donald Raab and Vlad Zakharov
    Power 7 and IBM J9VM, Himanshu Goyal
    A Whistle-stop Tour of Maven 3.0, Matthew McCullough
    Mass Volume Opportunities for Java Developers, Jouko Nuottila
    Emerging Technology Complex Event Processing, Duvvuri Srinivas
    Agile ALM for Distributed Development, Karthi Swaminathan
    Dim Sum Grails - A Sampler of Practical Non Database-Driven Grails Applications, Scott Davis
    Diagnosing Performance Bottlenecks in J2EE, Deepak Kaul
    Business Driven Identity Management, Suneet Agera
    Combining Java EE with OSGi using Eclipse Gemini, Mike Keith
    Workshop: Essence of Functional Programming, Venkat Subramaniam
    Workshop: Agile Development, Tools, and Teams and Scrum Certification, Stephen Forte
    Workshop: Cloud Computing Boot Camp on the Google App Engine, Matthew McCullough
    Workshop: Building Your First Amazon App, Simone Brunozzi
    Workshop: The 180-min AJAX and JSON Spike Class, Scott Davis
    Workshop: PHP + Adobe Flex = Killer RIA, Shyamprasad P
    Workshop: User Expereince Evaluation Model Walkthrough, Sanna Häiväläinen
    Workshop: Building Data Centric Applications using Adobe Flex and Java, Prashant Singh
    Workshop: Monetizing your Apps with PayPal X Payments Platform, Khurram Khan, Praveen Alavilli
    Sponsors of Great Indian Developer Summit 2010 include: Platinum sponsors Microsoft, Oracle Forum Nokia and Adobe; Gold sponsors Intel and SAP; Silver sponsors Quest Software, PayPal, Telerik and AMT.
    About Great Indian Developer Summit
    Great Indian Developer Summit is the gold standard for India's software developer ecosystem for gaining exposure to and evaluating new projects, tools, services, platforms, languages, software and standards. Packed with premium knowledge, action plans and advise from been-there-done-it veterans, creators, and visionaries, the 2010 edition of Great Indian Developer Summit features focused sessions, case studies, workshops and power panels that will transform you into a force to reckon with. Featuring 3 co-located conferences: GIDS.NET, GIDS.Web, GIDS.Java and an exclusive day of in-depth tutorials - GIDS.Workshops, from 20 April to 24 April at the IISc campus in Bangalore.
    At GIDS you'll participate in hundreds of sessions encompassing the full range of Microsoft computing, Java, Agile, RIA, Rich Web, open source/standards, languages, frameworks and platforms, practical tutorials that deep dive into technical skill and best practices, inspirational keynote presentations, an Expo Hall featuring dozens of the latest projects and products activities, engaging networking events, and the interact with the best and brightest of speakers from around the world.
    For further information on GIDS 2010, please visit the summit on the web http://www.developersummit.com/
    A Saltmarch Media Press Release
    E: info  AT saltmarch dot com
    Ph: +91 80 4005 1000
    Edited by: wonkim785 on Apr 14, 2010 8:23 AM

    Im not sure if this is the right place to post this, but anyway thanks for the info :)

  • Basic questions about Bigdata, NOSQL and Hadoop

    Hi,
    I've basic questions related to Bigdata. (I've googled it but still wants to confirm with experts)
    Please correct me if I am wrong on below.
    1) As far as I know big data is collection of unstructured data. Even we can store relational data as well.
    2) NOSQL is an Oracle product to handle bigdata (un structured data and relational data as well)
    3) Hadoop is the only one frame work which is avilable in market to manage the bigdata.
    What are the other database systems we have in the market to manage the bigdata.
    Cheers,
    Suri

    Hi Suri,
    1)  "Big Data" does not have a crystal clear, black and white definition. 
    It is generally characterized as being the processing and management of an amount and type of data that makes a specific workload on that data slow and/or expensive.
    Most commonly, Big Data involves processing and management of unstructured data of large volume and the typical technology used to store/process it is Hadoop, However, on occasion a NoSQL database will also deal with unstructured data.
    Big Data is also seen often in the form of simple, semi-structured data of both large volume and/or large velocity and the typical technology used to store/process it is a NoSQL database.  However, on occasion Hadoop will also deal with semi-structured data of large volume.
    In some cases, Big Data is seen in the form of highly connected data that will be manipulated by advanced algorithms that will need to touch a lot of the data and the typical technology used to store/process it is a Graph type of NoSQL database.
    2)  NoSQL is a category of database technologies most often dealing with the issues as outlined in bullet 2 above.   The Oracle NoSQL Database is oracle's product in the NoSQL category of database technologies.   It does NOT store relational data.   When using NoSQL relations between the data must be managed within the application code.
    3)  Hadoop and NoSQL booth manage Big Data, but different aspects as discussed in (1) above.   Hadoop is a batch based, slow processing data technology, but the "slow" is relative because it can process very large amounts of data, so minutes is commonly seen as fast.   NoSQL is a near real-time data processing technology and typically deals with Big Data where access times are in the single digit millisecond range.
    Hope this helps,
    -Robert

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Basic questions about connection sharing and radio mode

    I just got TC and have a couple of basic questions.
    At home I have a D-Link ADSL modem/router (no wifi) plugged into the wall, and would like TC to provide wifi. I've connected the WAN port to some LAN port of the router and everything works fine. The intented usage of the setup is wifi-only. Would you recommend TC to do DHCP/NAT? Or is Bridge mode better? In the latter case I don't fully understand who's routing the wifi network (though it actually works).
    Second question is about radio mode. My wife has an iBook G4 that is not capable of talking 801.11n, so I selected the n mode compatible with b/g. In that mode my black MacBook will still be able to talk 801.11n with TC? The iBook has very low usage, it is fine that computer uses 801.11g for TC, but I'd like the MacBook to go full-speed. (If that's not possible I'd ponder purchasing an 801.11n adaptor of some sort for the iBook.)

    Would you recommend TC to do DHCP/NAT? Or is Bridge mode better?
    It doesn't matter.
    In the latter case I don't fully understand who's routing the wifi network (though it actually works).
    The D-Link modem/router.
    In that mode my black MacBook will still be able to talk 801.11n with TC?
    Yes. It will only suffer lower bandwidth if the iBook G4 is actively connected.

  • Basic questions on Java Mail

    Hi,
    I am new to Java Mail and I have following questions. When I send any e-mail with Java Mail through my program it is underlivered if subject length is more. I am yet to discover the limit (in terms of characters) which can be set, but before that I just thaught to take opinion of some of the experts through this forum.
    a) Is there a limitation in subject length in terms of characters?
    b) Can length be increased or is it a problem in the email API or on SMTP server?
    c) How can we pass special characters?
    If anyone can answer it would be great!
    Regards,
    ParagJ

    Hi bshannon,
    Thanks for the reply.
    What's an example "long" subject length that doesn't work? -- If subject length is more than 256 characters the mail is undelivered and I don't get any exception as well. This is the problem with SMTP configuration. I just checked RFC 821 and it says about these size limitations.
    Can we increase this size by somehow changing the SMTP configuration? I have no idea about how to achieve that. I have searched on Google also but didn't get any useful information. If you can focus some light on this I will be thankful to you :).
    Regards,
    ParagJ

  • Getting started, basic questions on java 3d

    hello I am Krishnakant Mane,
    I have just started in java 3d and I am developing some edutainment softwares,
    I am just getting started so plese help me on the following topics.
    1. what tools do I need to start doing java 3d? I have installed java 5 (v1.5) and what else I need.
    2. is there a special advantage using open gl with java? will I have to learn some thing more? and if open gl has no specific advantage, can I do all my 3d or animations say for games etc entirely in java?
    3. wich is the latest version of 3d API I must download? where will I get a tutorial?
    thanks.
    Krishnakant.

    The answer to all of your questions is here:
    http://java.sun.com/products/java-media/3D/
    There is a "getting started" tutorial, downloads, and a fly-through, links to documentation, etc.
    See the Search at the top of the page? Give it a try! ;)
    :) jen

  • Question about Java,XSLT and XML

    I am new to Java and XML. I'm not quite clear the relationship between Java,XSLT and XML.
    To exercise, I am going to write a Java program that makes embedded calls to an XSLT processor(XALAN), to produce results for several constrained transformations from a given XML document(x.xml) such as:
    1.Transform the x.xml (which satisfies d1.dtd) in such a way that it now conforms to the DTD d2.dtd. Output the resulting xx.xml document.
    2.query some information from the x.xml and then form an Html output.
    3.summary some information, do some statistics from the x.xml and then form an Html output.
    I don't konw which java classes and XSLT functions might be used.(Actually I don't know how/where to start).
    Can anyone give me some clue ?
    thanks a lot!

    You must provide XSLT stylesheeds to specify transformations (1), (2),
    and (3); let's call those stylesheets task1.xsl and so on.
    The following code will transform x.xml into xx.xml according to task1.xsl. It gives you an idea which packages and classes to use, but it doesn't teach you proper Java programming technics :)
    import java.io.File;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Test
        public static void main(String[] args) throws Exception
            TransformerFactory factory = TransformerFactory.newInstance();
            Source config = new StreamSource(new File("task1.xsl"));
            Transformer transformer = factory.newTransformer(config);
            Source source = new StreamSource(new File("x.xml"));
            Result result = new StreamResult(new File("xx.xml"));
            transformer.transform(source, result);
    }To read about XSLT, see:
    http://www.w3.org/TR/xslt
    there is a tutorial on using XSLT with Java:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/index.html.

  • Some basic questions about Java ME

    Hi,
    I am new in the world of Java ME, I started to read about the technologies around it and for this reason I have some questions.
    There are 2 platforms CDC and CLDC and on top of these platforms there are some profiles, for example Personal Profile for CDC or MIDP2 for CLDC. On the next level (on top of these profiles) are some JSRs which are treated as optional packages.
    I saw that the CLDC emulator from SUN - WTK contains for example JSR 179 for Location based services and JSR 226 - SVG rendering. But the counterpart for CDC doesn't contain them.
    How can these JSRs be added to the CDC stack? are there some implementations of these JSRs as jars or something like this? or on the JCP site are only the specifications of this JSRs and if someone wants to add these JSRs to an emulator (virtual machine) he should implement these specifications?
    I hope that I have explained properly my "puzzle" and that someone will answer to my questions.
    Thank you

    1.    String[] numString = {"1","2","345678","9","abc"};
        int[] numInt = new int[numString.length];
        for (int x=0; x<numString.length; x++) {
          try {
         numInt[x] = Integer.parseInt(numString[x]);
          } catch (NumberFormatException nfe) {
         System.out.println(nfe.getMessage());
            numInt[x] = Integer.MIN_VALUE;
        }2. Best for what?

  • Question About Java Threads and Blocking

    I'm helping someone rehost a tool from the PC to the Sun. We're using the Netbeans IDE and the Java programming language. I took a Java course several years ago, but need some help with something now. We're developing a front-end GUI using Swing to allow users to select different options to perform their tasks. I have a general question that will apply to all cases where we run an external process from the GUI. We have a "CommandProcessor" class that will call an external process using the "ProcessBuilder" class. I'm including the snippet of code below where this happens. We pass in a string which is the command we want to run. We also instantiate a class called "StreamGobbler" my coworker got off the Internet for redirecting I/O to a message window. I'm also including the "StreamGobbler" class below for reference. Here's the "CommandProcessor" class:
    // Test ProcessBuilder
    public class CommandProcessor {
    public static void Run(String[] cmd) throws Exception {
    System.out.println("inside CommandProcessor.Run function...");
    Process p = new ProcessBuilder(cmd).start();
    StreamGobbler s1 = new StreamGobbler("stdin", p.getInputStream());
    StreamGobbler s2 = new StreamGobbler("stderr", p.getErrorStream());
    s1.start();
    s2.start();
    //p.waitFor();
    System.out.println("Process Returned");
    Here's the "StreamGobbler" class:
    import java.lang.*;
    import java.io.*;
    // Attempt to make the output of the process go to the message window
    // as it is produced rather that waiting for the process to finish
    public class StreamGobbler implements Runnable {
    String name;
    InputStream is;
    Thread thread;
    public StreamGobbler (String name, InputStream is){
    this.name = name;
    this.is = is;
    public void start(){
    thread = new Thread (this);
    thread.start();
    public void run(){
    try{
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    while (true){
    String s = br.readLine();
    if (s == null) break;
    System.out.println(s);
    //messageWindow.writeToMessageArea("[" + name + "]" + s);
    is.close();
    catch(Exception ex){
    System.out.println("Problem reading stream" + name + "...:" + ex);
    ex.printStackTrace();
    The "CommandProcessor" class calls two (2) instances of the "StreamGobbler" class, one for "stdin" and one for "stderr". My coworker discovered these are the 2 I/O descriptors that are needed for the external command we're running in this case. We're actually called the Concurrent Versions System (cvs) command from the GUI. Here's what we need it to do:
    We want to display the output real-time as the external process is executing, but we want to block any actions being performed on the GUI itself until the process finishes. In other words, we want to show the user any generated output from the process, but don't want to alllow them to perform any other actions on the GUI until this process has finished. If we use the "waitFor()" function associated with a process, it blocks all external process output until the process has completed and then spews all the output to the screen all at once. That's NOT what we want. Also, if we don't use the "waitFor()" function, the code just continues on as it should, but we don't know how to block any actions on the GUI until this process has finished. My coworker tried the following code, but it also blocked any output until the process had finished:
    while (s1.thread.isAlive() || s2.thread.isAlive())
    // We really don't do anything here
    I'm pretty sure we have to use threads for the output, but how do we instantly show all output and block any GUI actions?
    Thank you in advance for your help!

    You're talking about a GUI, but there's nothing in that code which is putting events into the GUI update thread. You also say that nothing happens to the GUI until the CommandProcessor.Run() method returns if you wait for the process.
    This implies that you're calling CommandProcessor.Run() in an ActionListener. This will block the GUI thread until it completes.
    I was going to explain what to do, but a quick Google informed me that there's a new class which is designed to help in these situations SwingWorker (or as a [separate library|https://swingworker.dev.java.net/] if you're not up-to-date yet).

  • Some basic questions about foriegn key , and relationships.

    Hi
    Thank you for reading my post
    I read some documents about foreugn key and tables relation ships.
    but i still can not understnad some stuff.
    1-when we have a foreign key , we have two tables that we want to relate them together
    in a way that one of ? table columns forced to be a value from ?? table column.
    what is name of those two tables , i saw , child-parent , ..... which confuse me.
    can some one please tell me correct name of those two tables ?
    2-some times we need some kind of master details relation like :
    one-to-many : i this case MANY table will have a column to point a record in ONE table , can this relation be a foreign key relation ?
    3-we can achieve many-to-many relation only by using a helper table to host both tables primary keys in a record to relate them together.
    can you point me to some resources that help me to find answers to this questions ?
    or explain them to me ?
    thank you for your time.

    These are critical database basics that you need to understand. I would seriously recommend getting some study in, because proper relational database design relies on the basic principle of data and relationships and a process called normalization.
    In reality, you only really need one gigantic table to host data. It would include everything you would want to know about something - let's take a sales order for example. You would have to record the customer's name, address, etc. along with every item they ordered, etc. You would have a HUGE table full of data that appeared over and over and over again. This is bad design for two basic reasons: it is difficult to query, and it is very easy to have minor mistakes like capitalization or alternate spellings that prevent things from matching up properly. For example, let's say Bob orders 40 widgets and 40 digits. In our hypothetical table, we could put it in as Bob - 40 widgets and Robert - 40 digits. See how confusing this can get even in a simple example? And let's say you wanted to correct all of Robert's orders to say Bob and you found out there were 40 orders from "Robert" How would you know which ones to change?
    The process of normalization helps to reduce the chance for these types of errors in addition to creating a good basis for indexes. You normalize the data by creating sets of parent/child tables with a "key" value to match them. In our hypothetical situation, you could create a table for orders and a table for customers. In the customers table you give all the detail for the customer in one place, and you assign each customer a unique number or ID. In the orders table we add the customer ID (NOT the name) and we ensure that we are getting the customer we want, in addition to saving a lot of space and eliminating redundancy. In our example, the customers table is the "parent" table and the orders table is the "child" table. The child table references the unique entries in the parent table via that id. That reference is referred to as a foreign key. The foreign key in the child table points back to the original and complete record in the parent table and eliminates the redundancy of keeping all that extra data for every order. Foreign keys in child tables always refer to a primary/unique key in the parent field.
    That help?

  • Very basic questions on JAX-RPC and wscompile

    Hello,
    well, I have this tool that generates java packages. The thing is that this tool needs now to generate JAX-RPC compliant java packages. To verify its compilance, I am using wscompile 1.1.3 build R1 and Sun AS Edition 8.2.
    My questions are:
    - In the generated packages, there might some classes with no attributes at all :P(remember that I am handling automatically generated classes). When running wscompile to generate the corresponding WSDL, I am getting "invalid type for JAX-RPC structure", even if it has a default empty constructor. I know it looks stupid, but I could not find anywhere in the JAX-RPC specification saying that for a class to be jaxrpc compliant, it must have at least one attribute. Any idea?
    - It might be the case that I have same class name in different packages:
    mypackage.structures.messages.A
    mypackage.structures.segments.AWhen generating the server stub, I am getting:
    Duplicate type name "{urn:mynamespace}A" for java type "mypackage.structures.segments.A" found.
    Is there a way to tell wscompile to keep the class package name for every class when generating the wsdl? Or is it always building all the classes together in the package specified in the service/packageName within the configuration xml file?
    Thanks a lot in advance for any help.

    1. Does predictive text only work in the SMS app, or does it work in the apps for email, writing notes, etc?
    It works with Safari, the Mail client, the Notes app, and with the SMS app.
    2. Can you turn the predictive text off? (I find it wildly irritating, because I know far better what words I want to write than a pesky phone does!)
    Yes.
    3. Having email sent to a mobile is a whole new world for me! Do I need to subscribe to MobileMe at £££ per month, or is there another way of having email from my three accounts forwarded to my mobile?
    You can access any IMAP or POP account with the iPhone's Mail client, and access multiple email accounts. I currently access to email accounts with the iPhone's mail client - my MobileMe account, and a business POP account. You can access all 3 of your email accounts with the iPhone's Mail client.

Maybe you are looking for

  • I have a Macbook Pro Early 2011, with 10.7.5 that recently started freezing.

    I have run disk verification and repair.  I have tried resetting the SMS with that- hold down cmd, opt, shift and power at start up trick.  I have deleted tons of files that were a waste of space.  The problem started after trying to run time machine

  • Does the date entered fall on a Saturday or Sunday?

    Has anyone had to verify the date, entered by the caller, doesn't fall on a Saturday or Sunday? If so how did you do it? We are running UCCX 5.0(2) premium edition. Thanks.

  • Missing Media Manager

    Phone: Curve 8310 dumbphone with AT&T specific Desktop Manager software I can't seem to transfer audio or video files to the phone. I don't even see a logical software path to follow. Everything I read on this says to use the Media Manager that comes

  • WSUS update stopped working on MDT Task

    Hi I've been using MDT for a while now, and had no problems.  FOr some reason WSUS update has stopped during the MDT Task Sequence. I have specified in my customsettings.ini WSUSServer=http://phdc03 It used to install the last few updates that i didn

  • This.hostContainer problem

    I don't understand why if(this.external && this.hostContainer) returns true when my PDF is embedded in an HTML document, but if I change the file to an HTA (trusted) document, this.external is still true, but this.hostContainer returns undefined.  Si