Java card confusing Issues!!!!!!! java card architecture, advantage!!!!!

QUESTION -1
As I know about architecture of any application is -
                //normal java software                          java card                                  java card
                  //  1                                               2                                      3
1-            application program                        host application                           host application
2-                     JVM                                   Applets                                       Applets
3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
4                    hardware                              Operating system                                 H/W
5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!!
I think - case 3 is right!!!!
As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program
QUESTION 2- what is the advantage of java card.?
// I think.
as i read out , i got the line that it is platform independent and support multiple application. applicaton point of
view , I am agree but how it is platfrom independent. if we use java card for smart card development, then
i will purchase Java card from differnt vendor , all will provide me card with supported jcre inside it, so why
this is advantage here?
// in case of window based application , it really make sense  because if i will make any window application with java
// i can run it in windows , linux , unix and most of os flavours, here i can see the beauty of java language.
Clear me this and add some other java card advantages, which make java card goodquestion 3-
Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
want to select the applet and want to pass the apdu.
( a) how i can make host window application ? (i think awt will work for me? , *
i never make any java window application yet) *
( b) still i dont have any java card , i want to make it by using simulator, is it possible?
  (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
applet or from where i need to start.Regards:
rohit pathak
Edited by: rohit pathak on Feb 9, 2012 10:10 PM

Hi,
QUESTION -1
As I know about architecture of any application is -
//normal java software                          java card                                  java card
//  1                                               2                                      3
1-            application program                        host application                           host application
2-                     JVM                                   Applets                                       Applets
3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
4                    hardware                              Operating system                                 H/W
5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!! If you are using Java Card then JCRE+JVM = OS and if you put this on ein package 3 then 3 is correct according to me.
As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program Actually it depends. There can be following models in this regards:
1. Buy a empty smart card, Install your own OS and then write your applets for it.
2. As you said, Buy a card with preloaded OS and then write applets for it.
QUESTION 2- what is the advantage of java card.?
* Interoperable: Applets developed with Java Card technology will run on any Java Card technology-enabled smart card, independently of the card vendor and underlying hardware.
* Secure: Java Card technology relies on the inherent security of the Java programming language to provide a secure execution environment. Designed through an open process, the platform's proven industry deployments and security evaluations ensure that card issuers benefit from the most capable and secure technology available today.
* Multi-Application-Capable: Java Card technology enables multiple applications to co-exist securely on a single smart card.
* Dynamic: New applications can be installed securely after a card has been issued, enabling card issuers to respond to their customer's changing needs dynamically.
* Compatible with Existing Standards: The Java Card API is compatible with international standards for smart cards such as ISO7816, or EMV. Major industry-specific standards such as Global Platform and ETSI refer to it.
* Developers creating Java Card applications enjoy all the advantages of working in the Java programming language:
Object-oriented programming yields greater code modularity and reusability, leading to higher programmer productivity.
Protection features characteristic of the Java programming language apply to Java Card applets, enforcing strong typing and protection attributes.
Powerful off-the-shelf development tools are readily available.
source: http://java.sun.com/javacard/overview.jsp
And also, in case of SIM card if you are using java card then RAM is possible and native cards don't have this ability.
question 3
Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
want to select the applet and want to pass the apdu.
( a) how i can make host window application ? (i think awt will work for me? , *You can use swing for this to make interface and use smartcardIO http://docs.oracle.com/javase/6/docs/jre/api/security/smartcardio/spec/javax/smartcardio/package-summary.html for sending APDUs.
i never make any java window application yet) * It is easy you can look here and start: http://www.roseindia.net/java/example/java/swing/
( b) still i dont have any java card , i want to make it by using simulator, is it possible?Actually, smartcardIO will only interact with actuall card and for simulator you will have to use console for sending APDUs.
(c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
applet or from where i need to start.For your current case it is enough and for host app you should study smartcardio as i mentioned above.
Hope it helps.
Regards
Umer

Similar Messages

  • How to load Java applets on Gemxplore 3G card ? (APDU inside)

    Hi,
    Does anyone have experience on how to load Java applets into Gemxplore 3G card ?
    I tried to load the tck applets into Gemxplore 3G card but the got sw 6985 for INSTALL FOR INSTALL Make Selectable
    Here is the details on APDUs.
    Do you know what is wrong ?
    Regards
    -guoqing
    SELECT
    *00 A4 04 00 07 A0 00 00 00 18 43 4D*
    *61 1A [Normal ending of the command with <26> bytes of extra information.]*
    INITIALIZE UPDATE
    *80 50 01 01 08 00 01 02 03 04 05 06 07 (1C)*
    *43 4D 6D FF 23 B5 C4 13 20 1A 01 01 9F 15 97 A5 CE E9 CF A7 19 C6 8D F9 8B 9A 78 DB, 90 00 [Normal ending of the command.]*
    EXTERNAL AUTHENTICATE
    *84 82 01 00 10 EB 88 23 3C B6 4E 23 E9 69 1B 30 08 56 7A 1F 8F*
    *90 00 [Normal ending of the command.]*
    INSTALL FOR LOAD
    *84 E6 02 00 24 09 A0 00 00 00 62 B0 BA A1 01 00 00 0E EF 0C C6 02 00 00 C8 02 00 00 C7 02 00 00 00 53 9D 96 C2 D4 8F 41 6B (00)*
    *00, 90 00 [Normal ending of the command.]*
    SELECT
    *00 A4 04 00 07 A0 00 00 00 18 43 4D*
    *61 1A [Normal ending of the command with <26> bytes of extra information.]*
    INITIALIZE UPDATE
    *80 50 01 01 08 00 01 02 03 04 05 06 07 (1C)*
    *43 4D 6D FF 23 B5 C4 13 20 1A 01 01 A5 57 A0 A0 00 7E 5A 3F A5 10 6A 37 69 16 AA 6F, 90 00 [Normal ending of the command.]*
    EXTERNAL AUTHENTICATE
    *84 82 01 00 10 28 BA 3A C4 D6 05 C9 C9 70 37 39 F1 7B 6D F8 80*
    *90 00 [Normal ending of the command.]*
    INSTALL FOR INSTALL Make Selectable
    *84 E6 0C 00 36 09 A0 00 00 00 62 B0 BA A1 01 09 A0 00 00 00 62 B0 BA A1 81 09 A0 00 00 00 62 B0 BA A1 81 01 00 0C EF 08 C7 02 00 00 C8 02 00 00 C9 00 00 A4 CE 57 8B 19 F2 9E 0A (00)*
    *69 85*
    Edited by: guoqing on May 19, 2008 6:06 AM
    Edited by: guoqing on May 19, 2008 6:20 AM

    I don't have any experience with GTO's cards, but one would expect they provide a user guide or a data sheet how to load applications.. Reasons could be:
    1. Issuer policy to have a certain security level for content management --> raise the security level to C_MAC + ENC
    2. Issuer policy this card is static --> no post-issuance

  • Smart Card Winlogon using Java

    Hey,
    Is it possible to develop Smart Card Winlogon using Java.?
    Can the Java programming interact with MsGina.Dll?
    Is there any alternative method to perform such task apart from the above?
    Thanks in Advance
    LOOI

    To interact with a Windows DLL you need to use JNI.

  • Magnetic card reader and java

    hi all
    I am doing a project in java in which i need to read the magnetic card reader in my program.so please tell me how to read the text ,that the card reads, in java.Basically my project is to develop an attendence system in java that will use ATM card of the person.I need to read the string that the reader reads, in java.Please help me how to do this.Thanks in eadvanc

    Alright,let me give you an idea of what stratergies which we can follow with regards to your requirement assuming that the magenetic card contains just a stream of information.
    1).If you are using Magnectic card Over Serial / LPT ports,Try to use Java Communication Api.
    write a class using it which pools all the available initiated ports continuosly.If you find ready data avalable with regards to that device connect to that port & then fetch the data and then throgh an event with regards to that data obtained now parse the data accordingly and then use for your business means.
    http://java.sun.com/products/javacomm/
    http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html
    http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf
    the above links would guide you through in acheiving the stated solution.
    2). If the stated Magenetic Card or Specified device already has a Driver in place and set of native methods(in low level languages) in place.all you ought to do is to make use of JNI and write a native Linking library using JNI specification which can make use of those native methods and export them to java and use them accordingly.
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html
    http://www.javaworld.com/javaworld/jw-10-1999/jw-10-jni.html
    http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html
    Hope the might help you in taking you through :)
    REGARDS,
    RaHuL

  • Java libgcj-java-placeholder.sh Issues

    Hello,
    I installed j2sdk1.4.2_05 and j2re1.4.2_05 unser /usr/java on my RHEL server.
    When typing "which java" and "java -version", under the "oracle" user I do not get the version installed.
    Instead, I get a message "...libgcj-java-placeholder.sh..." relating.
    When trying to run a shell, i get an error "Java Class not found".
    1) How can I resolve this issue ?
    PT

    This is the content of my PATH variable in my .bash_profile file:
    PATH=/usr/bin:$ORACLE_HOME/bin:$PATH:$HOME/bin:/usr/bin/java:/usr/sbin:/usr/java/jdk1.4.2_05/bin; export PATH
    PATH=$PATH:$ORACLE_HOME5/jdk/jre/lib/i386:$ORACLE_HOME5/jdk/jre/lib/i386/server; export PATH
    ----Looks like your PATH variable is trying to be confusing. Why we are seeing $ORACLE_HOME and $ORACLE_HOME5? "/usr/bin/java", not a directory I assume, has no effect here.
    To resolve your issue, please replace the above two lines with one single line:
    PATH=/usr/java/jdk1.4.2_05/bin:$ORACLE_HOME/bin:/usr/bin:$PATH:$HOME/bin:/usr/sbin; export PATH
    The order of the paths that appear in $PATH are important. Here "/usr/java/jdk1.4.2_05/bin" is put at the very front. I also assume that your are using $ORACLE_HOME instead of $ORACLE_HOME5; otherwise, you can switch them.
    As orafad mentioned, I strongly recommend that you replace the "/usr/java/jdk1.4.2_05/bin" with $ORACLE_HOME/jdk/bin, if the later is a valid location as it should.
    At any time, you can always see what java executables you have in your $PATH by running the following bash commands in your bash shell:
      for dir in `echo $PATH | tr ":" " "` ; do if [ -x $dir/java ]; then ls $dir/java; fi; done
    The very first line of output is the java you are using. This command can be helpful when the $PATH gets more complicated.

  • Confused on vid cards for new dv6t and dv7t quad core units

    I've been looking at a new unit and HP is currently advertising the following grahics cards for the above mentioned units. That being:
    1GB Discrete GDDR5 Graphics AMD Radeon(TM) [HDMI, VGA]
    2GB Discrete GDDR5 Graphics AMD Radeon(TM) [HDMI, VGA]
    +$75.00
    I called customer support and also talked to tech suppurt and no one could tell me what these cards are......does anyone have anymore specific info on this vid cards? Thanks in advance!!!

    If anyone else is having this issue I found this info on another site:
    http://forum.notebookreview.com/hp-pavilion-notebo​oks/634581-hp-dv6-graphics-card-confusion-clear-up​...

  • Remote lock & Memory card corrupted issue

    Remote lock & Memory card corrupted issue
    Hi Dear Friends,
    You might have experienced the "Memory card corrupted issue."
    Don't panic! The solution is here!
    Your memory card is just 'locked', it isn't 'corrupted'!
    For sure, this post would be of great help to you, if:
    • You have enabled the "Remote lock" feature of your Nokia device.
    • You have sent the remote lock message to your device and locked it remotely.
    Finding the solution really took me a lot of time. I was inspired by various posts on the Discussion, and decided to find the official notes on the issue. So would like to thank those who shared their tips, and helped us solve this problem.
    I'm using E66, (you might use something else), and would refer to E51's and E65's User guide so often.
    Of course, I'm not going to explain the instructions, and recommend you to refer to your user guides when needed.
    On the contrary, I'm going to explain what may not be mentioned in your user guides.
    Let’s Begin
    What Has Happened:
    In short, you attempted to test the feature, your phone was locked, you keyed in the lock code, code was accepted, you used the phone for a while, switched it off, powered it on, you were prompted the Lock code, you keyed in the lock code, code was accepted, you attempted to view some stuff that was on your memory card, you didn't find it, you tried to run a program that was installed on your memory card, the program icon didn't open, you put the memory card in the card reader and connected it to PC, it was not detected, you went to Menu> Tools> Memory card> You saw "Memory card corrupted"!
    Don't, don't select the Yes selection key if you got the caution message, "Memory Card corrupted, reformat it?" because your memory card isn't corrupted, it's simply being locked!
    But you can't find the unlock memory card command in Menu> Tools> Memory card> Options.
    So? What to DO?
    1. (This step is optional) Disable the Remote lock feature.
    (Refer to your user guides) and change Allow Remote Lock> to no.
    Then, while the unit is on,
    2. Press the power key briefly, and select Remove memory card.
    3. Remove the memory card from the slot.
    4. Press OK if prompted.
    5. Reinsert the memory card in the slot.
    6. Reopen Menu> Tools> Memory card.
    Is your memory card detected? If yes!
    7. Follow tips number 2 & 3 of What to Know section below.
    Did you get "Password removed" message?
    If no, be careful of the case of the first character.
    If you had changed the Remote lock message many times, use the one that was practically sent to the device via text message.
    . In case you had set a password on your memory card before, you may also attempt to unlock the locked memory using your own password, not the first eight characters of the remote lock message.
    Step seven would make the memory card detectable to the connected card reader to the PC too.
    8. The memory card is detected temporarily, but it is locked and the "memory card corrupted" issue reappears every time you switch off/on the phone, unless you successfully complete step seven.
    What to Know?
    Official User guide Tips:
    1. Remote locking also locks your memory card. (E51 page100)
    . Yes, the one mobile phone that sends your device the predefined remote locking message, receives the confirmation message in response, indicating, "Mobile telephone and memory card are locked". But it isn't written in E66's and E65's.
    2. To unlock the memory card, select Menu> Tools> Memory> Options> Remove password, and "enter the remote locking message as the password". (E51 page100)
    . Yes, quite clear, but the quoted part ("enter the remote locking message as the password") isn't written on my E66's User guide, and there's a vague precaution on E65's, (refer to number 4).
    3. If the message is longer than 8 characters, the first 8 characters are used as the memory card password. (E51 page100)
    . Yes, quite clear good E51, but I don't own you; I have E66 your little sister. I owe my memory card's survival to nice users on the Discussion.
    4. The maximum number of characters allowed is 8. Using more than 8 characters could prevent unlocking the memory card and require reformatting it. If reformatting the memory card is required, all information on the card will be lost. (E65 page28)
    . Quite interesting, but it contradicts what good E51 says in number three¡!
    . And it contradicts my own experience of the issue (and some other users' on the Discussion) too, since my E66's memory card accepted the 'first eight characters' of the 'ten-character long’ remote lock message that I had previously used to remote lock it.
    . The first three tips are quite important and shouldn't have been excluded from E66's and E65's user guides. I don't have the time to download and review all the user guides that support this feature, but at least I read some user manuals and also got the impression (from the posts on the discussion) that there had been not enough information on E66's, E65's, E71's, N96's, and some others.
    You may like to do a simple search on Google:
    "The first 8 characters are used as the memory card password" site:nokia.com
    Since the content of the user guides on the server seem not be searchable for any reason, you won't find any official support result except those of the good users on the Discussions. And the 'Nokia Site Search" brings no result too. (At least on the date of this post).
    ¡ Terribly sorry for those who have selected Yes to the Reformat caution message. It wasn't your fault. But there's an idiom that says, sleep on it! "Think about it for a while before coming up with a decision".
    But now that you have tested the feature and know its solution, don't be afraid, and enable the Remote lock feature again! God forbid, but it may be needed one day!
    Yours,
    http://nds1.nokia.com/phones/files/guides/Nokia_E51_UG_en.pdf
    http://nds1.nokia.com/phones/files/guides/Nokia_E65-1_UG_en.pdf
    http://nds1.nokia.com/phones/files/guides/Nokia_E66-1_UG_en.pdf

    Dear, I guess, / This article doesn't suit your case. / • You have not enabled the "Remote lock" feature of your Nokia device. / • You have not locked your device remotely. / Because you don't know where the remote lock is and haven't played with its settings. / You need to explain what has happened. / The only thing we get is that your memory card doesn't open. / 1. your phone model, e.g., 5130. / 2. What did you do recently that might have caused this issue? / 3. What methods did you try to unlock it? / Use some of the tips provided above. (except number 1). / Yours

  • Macbook Pro - SD Card Reader Issues Solved!

    I recently purchased a gently used, early 2011 MBP. I've had it for a few months, but I did not try using the SD card reader until last week... so much for kicking the tires. Long story short, the darn thing did not recognize or mount one single SD card out of a handful of cards, and at least 3 different card manufacturers all used with my Canon DSLR. I searched the net trying to find a solution and tried everything from sticking the card in at a some strange and ridiculous slant to shutting the computer down three different ways and resetting the System Management Controller (SMC); nothing worked. So today I spent 25 minutes or so chatting with an apple care specialist and they (Jim the apple care guru) finally came up with a solution, even though I'm sure neither one of us knows exactly why it worked. So here goes...
    Put your SD card in a external card reader, once it's mounted go to disk utilities and reformat (erase) the drive to Mac OS Extended. Take it out of your external reader and put it in the built-in reader on your Mac. Now, of course, it will no longer work in your camera or most other devices so you'll have to format it again in your device of choice. However, here's the kicker... once I did l all of that and took some quick pics, I put it back in my MBP and it popped right up even after a reboot. But wait there's more.... I then put the SD card in my wife's work laptop (PC running Win8) and played with the files for a bit, then stuck it back in the Mac and it still recognized it. So there goes the "windows screws up the formatting myth).
    So naturally I assumed that I would be forced to go through this double formatting process for all of my SD cards (and I have a lot), but then it happened! A Christmas miracle in October. I tried a second card, and then a third and a fourth and a fifth, etc... AND now they ALL pop up just like they should. Without reformatting or any other humanly changed processes. Yep... There you have it, it makes no sense. But it works ;)
    Somehow formatting just one card in the card reader "woke up" the whole process, almost like my MBP was like, hmmm I was wondering what you kept sticking inside that's slot of mine...
    Hope this helps someone. Sorry for the rant :)

    Anyone else with card reader issues should read this page. Just because your card reader doesn't appear to be working or has mysteriously dropped off your system doesn't necessarily mean a logic board replacement. I've repaired several portables over the years that had been quoted for costly logic board replacements, when in fact the failures were relatively easy to resolve once you understood the real problem.
    It's common belief a PRAM or SMC reset should fix all hardware glitches but sometimes it just doesn't go deep enough, as I found out with my 2011 MBP. Simply removing the battery was all it took to resurrect my seemingly dead card reader, when PRAM and SMC resets failed to have any impact on the problem.

  • Can I sign a Microsoft Word Document with the digital signature from a MIlitary issued CAC card?

    Is it possible to sign a MS Word doc with the digital signature froma  Military issued CAC card? It is easily done in Adobe but, I cannot find any guidance for MS Word docs.

    According to this thread in Microsoft's forums:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/can-i-how-do- i-add-a-digital-signature-to-a/eb2c2787-b13f-4388-b20f-4580515eec95
    this is not possible with Word for Mac.
    Regards.

  • Reg ::Java Plug in issue in linux 5.7

    Folks,
    I am facing jave plug in issue and cant open the form as itis geting error java plug in need
    FYI,
    [root@apps12 ns7]# uname -a
    Linux apps12.com 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 20:
    **11 i686 i686 i386 GNU/Linux**
    <!-- JDK plugins -->
    <sun_plugin_ver oa_var="s_sun_plugin_ver">1.5.0_10</sun_plugin_ver>
    <sun_plugin_type oa_var="s_sun_plugin_type">jdk</sun_plugin_type>
    /usr/java/jre1.5.0_10/plugin/i386/ns7
    [root@apps12 ns7]# ls -ltr
    total 112
    -rwxr-xr-x 1 root root 102464 Nov 10 2006 libjavaplugin_oji.so
    [root@apps12 firefox-3.6]# cd plug*
    [root@apps12 plugins]# ls -ltr
    total 4
    lrwxrwxrwx 1 root root 58 Mar 31 05:53 libjavaplugin_oji.so -> /usr/java/jre1.5.0_10/plugin/i386/ns7/libjavaplugin_oji.so
    [root@apps12 plugins]# cd /usr/lib/mozilla/plugins
    total 4
    lrwxrwxrwx 1 root root 58 Mar 31 06:00 libjavaplugin_oji.so -> /usr/java/jre1.5.0_10/plugin/i386/ns7/libjavaplugin_oji.so
    pls advise for the same
    Thanks
    Edited by: JuniorDBA on Mar 30, 2012 3:13 PM

    I am facing jave plug in issue and cant open the form as itis geting error java plug in needAre you trying to run the application from a Linux client? If yes, please note it is not certified -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Linux+AND+client&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    If you are trying to do something else, please post the details of the application release, database version and OS along with what you are trying to achieve.
    Thanks,
    Hussein

  • Java.lang.ExceptionInInitializerError Issue

    Previous problem fixed: Thank you. How about this attached problem:
    Note: I am able to "refresh" database schema fine, using the same
    properties file. So I know there are no connectivity or config issues.
    Thanks!
    java.lang.ExceptionInInitializerError: javax.jdo.JDOFatalUserException:
    Exception thro\
    wn by getPersistenceManagerFactory(Properties)
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:274)
    at
    javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:218)
    at bilgidata.JDOFactory.<clinit>(Unknown Source)
    at
    org.apache.jsp.comments_0005flist$jsp._jspService(comments_0005flist$jsp.ja\
    va:135)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j\
    ava:202)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
    at
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
    at javax.servlet.http.HttpServlet.service(
    java.lang.reflect.InvocationTargetException:
    java.lang.NoClassDefFoundError: javax/xml\
    /transform/TransformerConfigurationException
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(Unknown\
    Source)
    at
    com.solarmetric.kodo.meta.JDOMetaDataParser.parseMetaData(Unknown Source)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(Unknown\
    Source)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.parseMetaData(Unknown\
    Source)
    at com.solarmetric.kodo.meta.ClassMetaData.newInstance(Unknown
    Source)
    at com.solarmetric.kodo.meta.ClassMetaData.getInstance(Unknown
    Source)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.addPersistentT\
    ype(Unknown Source)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.loadPersistent\
    Types(Unknown Source)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.setup(Unknown
    Source)

    Fred Lucas wrote:
    Looks like you don't have jaxp.jar in your classpath. Make sure that all
    the jars we ship with are available in your runtime environment.
    -Fred
    Fred Lucas
    SolarMetric Inc.
    202-595-2064 x1122
    http://www.solarmetric.com
    Fred, thanks for your quick response.
    I have double checked:
    javax/xml/transform/TransformerFactoryConfiguratinException.class is in my
    classpath. All javax classes are available under my WEB-INF/classes (had
    to unjar them bcz I was getting package sealed errors otherwise).
    Any ideas?
    Thanks!

  • Script issue,Java install from script, push out to servers.

    this is a non standard install for Java that has to be installed from a script.  basically this script will run against a given amount of servers, stop the required services ( pertains to the application that requires Java on the server), uninstall
    java, install java, configure java with correct parameters and security permissions then lastly output a log file to the server that is running the script (folder) of each server .  each server will have thier own text file.   so two issues first
    java uninstalls but does not install due to a permissions error, and the other  issue that is occuring is there should be a log file for each server the
    log file will have the server name as the file namey, the script will look at the server list and run the code on that server so basically the script
    will run at the same time on all the servers, and create log file for each server and put in the folder i designate.  - this is not occuring based on the Powershell script below. what parameter is missing below. thanks
    $user = Read-Host 'Username:'
    $pass = Read-Host 'Password:'
    $result = "D:\Temp\" + $env:COMPUTERNAME +"_JavaUpdate.log"
    $copyfinal = "\\wsive005pap\d$\BatchFiles\Java_Update\"
    #Stop NCSB and Tomcat Services
    Stop-Service Tomcat7
    Stop-Service "NuanceCSB"
    #Uninstall Java
    Get-WmiObject -Class win32_product | ? {$_.Vendor -like "*Oracle*"} | % {msiexec /x "$($_.IdentifyingNumber)" /qn | Out-Null}
    Start-Sleep -s 120
    "Java 7 Uninstalled" | Out-File $result -append
    #Install Java
    $JRE = "D:\Installations\NVP 4.0 Install\jre-7u76-windows-i586.exe"
    & $JRE /s INSTALLDIR=D:\Apps\Progra~1\Java\jre7\ /l D:\Temp\javainstall.log | Out-Null
    Start-Sleep -s 240
    "Java 7 Installed" | Out-File $result -append
    #Configure Java
    $pattern = "security.provider.10=sun.security.mscapi.SunMSCAPI"
    $javasec = "D:\APPS\Program Files (x86)\Java\jre7\lib\security\java.security"
    $viecore = "security.provider.11=cryptix.provider.Cryptix"
    (Get-Content $javasec) |
        Foreach-Object{
            if($_ -match $pattern)
                $_ 
                $viecore
            } else {
                $_ 
         } | Set-Content $javasec
    "Java Configured" | Out-File $result -append
    #Start NCSB and Tomcat Services
    Start-Service Tomcat7
    Start-Service "NuanceCSB"
    #Updating log files and push to the central server
    $javaver = gci "D:\APPS\Program Files (x86)\Java\jre7\bin\java.exe"
    $tomcatver = "D:\APPS\Program Files (x86)\Apache Software Foundation\Tomcat 7.0_Tomcat7\lib\catalina.jar"
    "*****Check Java and Tomcat Version*****" | Out-File $result -append
    & $javaver -cp $tomcatver org.apache.catalina.util.ServerInfo | Out-File $result -append
    "*****Check Services Started*****" | Out-File $result -append
    Get-Service | Where-Object {$_.Name -eq "NuanceCSB"} | Out-File $result -append
    Get-Service | Where-Object {$_.Name -eq "Tomcat7"} | Out-File $result -append
    "*****Check Java Security File*****" | Out-File $result -append
    Select-String -Path $javasec -Pattern "cryptix" | Out-File $result -append
    "*****Print log file for CTI connections*****" | Out-File $result -append
    Get-Content "D:\APPS\NuanceCSB\logs\stdout.log" | Out-File $result -append
    "*****Print log file for connector*****" | Out-File $result -append
    Get-Content "D:\APPS\NuanceCSB\logs\CSB.log" | Out-File $result -append
    NET USE \\wsive005pap\d$ $pass /user:CORP\$user
    Copy-Item $result $copyfinal
    NET USE \\wsive005pap\d$ /delete

    Hi Gow,
    I would like to know how did you deploy the .ps1 script on remote computers like using task scheduler or something else, please make sure the user account you used to run this script on every server has enough permission.
    According to your script, it will produce a log file under "D:\Temp\" and this file will be copied to the destination
    \\wsive005pap\d$\BatchFiles\Java_Update\, please check the username and the password, and also make sure the folder exist before copy, then test the script below separately:
    $user = Read-Host 'Username:'
    $pass = Read-Host 'Password:'
    $result = "D:\Temp\" + $env:COMPUTERNAME +"_JavaUpdate.log"
    $copyfinal = "\\wsive005pap\d$\BatchFiles\Java_Update\"
    Get-Content "D:\APPS\NuanceCSB\logs\stdout.log" | Out-File $result -append
    Get-Content "D:\APPS\NuanceCSB\logs\CSB.log" | Out-File $result -append
    NET USE \\wsive005pap\d$ $pass /user:CORP\$user
    get-item \\wsive005pap\d$\BatchFiles\Java_Update\
    Copy-Item $result $copyfinal
    NET USE \\wsive005pap\d$ /delete
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HT5622 I am living in New Caledonia, a French Territory. How can I purchase from iTunes (ex: USA, Australia) using my card, French Issued?

    I am living in New Caledonia, a French Territory. How can I purchase from iTunes (ex: USA, Australia) using my card, French Issued?

    You can only download content(other than podcast episodes) from a country's iTunes Store if you're in that country. For paid content, you also need to supply a payment method valid in that country.
    (85658)

  • Still no fix for USB card sleep Issue

    Hi I just bought a 3rd party USB 2.0 card (an IOGEAR GIC251U). When I plug my LaCie extrenal USB drive in it works fine, until the computer has been to sleep. When the computer wakes up the drive has disappeared and I get a message saying that the drive has been improperly disconnected and that I can damage it by not ejecting before disconnecting.
    Looking at the posts on this forum, it seems that this PCI USB card sleep issue is a persistant problem. I have even heard buying a card described as a "crap shoot".
    That is not an acceptable answer to me. I insist that Apple reccomend a USB 2.0 card that it is willing to garuntee will work with my mac (an AGP G4 blue and white tower). If not, how can Apple in good faith sell computers with PCI that isnt equipped to handle built in apple features such as the sleep mode? I don't mean to sound like a demanding jerk of a customer but I dont think it is too much to ask that my computers advertised features (PCI expandability and sleep mode) both be able to work together.
    G4/400 MHz AGP graphics   Mac OS X (10.4.6)  

    Hi
    xlr8yourmac.com has a wealth of info on compatable devices of all kinds, it's often worth looking there & other Mac sites before purchasing..
    Apple cannot possibly determine compatability of all available 3rd party devices, it is up to the vendor to determine what systems/OS versions their hardware will support.
    I would stick with a vendor that is known for Mac support, such as Sonnet (or others that are sold through Mac sites such as OWC, SmallDog,etc.,) unless you are willing to do significant research on a specific product for compatability with your specific setup prior to purchasing.

  • Flash - Java - SerialData Translation issues

    This is for an art installation we're building in a gallery here in NYC. It opens Saturday, and we are in a jam with a problem.
    I'm using Dan O'Sullivan's Serial Server http://itp.nyu.edu/~dbo3/SerialServer/SerialServer.html , which is a little java server that connects to Flash via XML socket and to the serial port. It passes data back and forth since Flash doesn't talk to the serial port.
    The problem is this: Flash won't put the incoming data into the object and trigger the onData handler until it sees a null byte delimiter. On the other side, my serial device -- an encoder & adapter -- has no interest in producing a delimiter and cannot be programmed to do so. The data from the encoder is generally in the form of 4 bytes. You send it 1 byte to poll it.
    Thus the server app has to step in and patch things up, either (a) by indiscriminately appending 0's to everything it sees from the encoder (and figuring it all out in Flash) or better, (b) by having the server do the polling and keeping the current 4 bytes in a string, ready for when Flash requests it.
    This doesn't seem too bad - the server code is relatively simple - but I'm not a Java programmer (sorry, wish I were). I'm inserting the code here - any chance someone can help us out ... immediately?? Thanks very much.
    /Eric Liftin
    MESH Architectures http://mesh-arc.com
    * SerialServer.java
    * Title:               SerialServer
    * Description:          This relays bytes between a serial port and a socket connection.
    * @author               Administrator
    * @version               
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Toolkit;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.StringTokenizer;
    public class SerialServer extends java.applet.Applet  implements SerialListener {
         // IMPORTANT: Source code between BEGIN/END comment pair will be regenerated
         // every time the form is saved. All manual changes will be overwritten.
         // BEGIN GENERATED CODE
         // member declarations
         java.awt.Choice baud = new java.awt.Choice();
         java.awt.Checkbox interpretation = new java.awt.Checkbox();
         java.awt.Choice ports = new java.awt.Choice();
         java.awt.TextField socketPort = new java.awt.TextField();
         java.awt.Label softwarePort = new java.awt.Label();
         java.awt.Button sendToSocket = new java.awt.Button();
         java.awt.Button sendToSerial = new java.awt.Button();
         java.awt.TextField sendText = new java.awt.TextField();
         java.awt.TextArea traffic = new java.awt.TextArea();
         java.awt.Checkbox debugButton = new java.awt.Checkbox();
         java.awt.Label socketStatus = new java.awt.Label();
         java.awt.Label serialStatus = new java.awt.Label();
         java.awt.Label numbersFootnote = new java.awt.Label();
         java.awt.Button clearButton = new java.awt.Button();
         java.awt.Button cover = new java.awt.Button();
         // END GENERATED CODE
         String serialType = null;
         static Socketer mySocket;
         static Serial mySerial;
         boolean isStandalone = false;
         static boolean debug = false;
         public SerialServer() {}
         static HashMap argsHash;
         int substituteChar = 0;
         public void start() {
              //figure out what driver to use
              if (isStandalone == false) {
                        serialType =  getParameter("SerialDriver");
                   } else {
                        serialType = (String) argsHash.get("SerialDriver");
              if( serialType != null){  //if they did not specify
                   serialType= serialType.toLowerCase();
              newSerial();
              if (isStandalone == false) {
                   System.out.println("This is an Applet");
                   useParameters(getParameter("Baud"), getParameter("SerialPort"), getParameter("SocketPort"), getParameter("Sub0ForChar"), getParameter("SerialDriver"));
              } else {
                   useParameters((String) argsHash.get("Baud"), (String) argsHash.get("SerialPort"), (String) argsHash.get("SocketPort"), (String) argsHash.get("Sub0ForChar"),(String) argsHash.get("SerialDriver"));
              newSocket();
              connectSerial();
              //          event handling
              baud.addItemListener(new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e) {
                        baudItemStateChanged(e);
              interpretation.addItemListener(new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e) {
                        interpretationItemStateChanged(e);
              ports.addItemListener(new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e) {
                        portsItemStateChanged(e);
              socketPort.addTextListener(new java.awt.event.TextListener() {
                   public void textValueChanged(java.awt.event.TextEvent e) {
                        socketPortTextValueChanged(e);
              sendToSocket.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        sendToSocketPerformed(e);
              sendToSerial.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        sendToSerialActionPerformed(e);
              sendText.addTextListener(new java.awt.event.TextListener() {
                   public void textValueChanged(java.awt.event.TextEvent e) {
                        sendTextTextValueChanged(e);
              ////     traffic.addTextListener(new java.awt.event.TextListener() {
              //     public void textValueChanged(java.awt.event.TextEvent e) {
              //          trafficTextValueChanged(e);
              debugButton.addItemListener(new java.awt.event.ItemListener() {
                   public void itemStateChanged(java.awt.event.ItemEvent e) {
                        debugItemStateChanged(e);
              clearButton.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        clearActionPerformed(e);
              //populatePorts();
         // Initialize the applet
         public void init() {
              try {
                   initComponents();
              } catch (Exception e) {
                   e.printStackTrace();
         public void useParameters(String _baud, String _serialPort, String _socketPort, String _subChar, String _serialType) {
              System.out.println("Input Parameters Baud:" + _baud + " SerialPort:" + _serialPort + " SocketPort:" + _socketPort + " SubChar:" + _subChar+ " SerialType:" + _serialType);
              if (_baud != null) {
                   baud.select(_baud);
              if (_subChar != null) {
                   substituteChar = Integer.parseInt(_subChar);
              } else {
                   substituteChar = 0;
              //else{
              //          baud.select("9600");
              if (_serialPort != null) {
                   ports.select(_serialPort);
              } //else{
              //     ports.select("COM1") ;
              //if ((_baud != null) || (_serialPort != null)){
              //     newSerial();
              if (_socketPort != null) {
                   socketPort.setText(_socketPort);
                   //     newSocket();
         public void initComponents() throws Exception {
              // IMPORTANT: Source code between BEGIN/END comment pair will be regenerated
              // every time the form is saved. All manual changes will be overwritten.
              // BEGIN GENERATED CODE
              // the following code sets the frame's initial state
              baud.setVisible(true);
              baud.setLocation(new java.awt.Point(222, 31));
              baud.setSize(new java.awt.Dimension(70, 21));
              interpretation.setVisible(true);
              interpretation.setLabel("Use decimals instead of letters.");
              interpretation.setLocation(new java.awt.Point(43, 175));
              interpretation.setSize(new java.awt.Dimension(200, 20));
              ports.setVisible(true);
              ports.setLocation(new java.awt.Point(222, 10));
              ports.setSize(new java.awt.Dimension(108, 21));
              socketPort.setLocation(new java.awt.Point(18, 10));
              socketPort.setVisible(true);
              socketPort.setText("9001");
              socketPort.setSize(new java.awt.Dimension(40, 20));
              softwarePort.setVisible(true);
              softwarePort.setLocation(new java.awt.Point(60, 10));
              softwarePort.setText("<Socket > ------------- <Serial>");
              softwarePort.setSize(new java.awt.Dimension(160, 20));
              sendToSocket.setVisible(true);
              sendToSocket.setLabel("<TestSend");
              sendToSocket.setLocation(new java.awt.Point(1, 60));
              sendToSocket.setSize(new java.awt.Dimension(80, 20));
              sendToSerial.setVisible(true);
              sendToSerial.setLabel("Test Send>");
              sendToSerial.setLocation(new java.awt.Point(279, 60));
              sendToSerial.setSize(new java.awt.Dimension(80, 20));
              sendText.setLocation(new java.awt.Point(82, 60));
              sendText.setVisible(true);
              sendText.setSize(new java.awt.Dimension(197, 20));
              traffic.setLocation(new java.awt.Point(5, 95));
              traffic.setVisible(true);
              traffic.setSize(new java.awt.Dimension(352, 80));
              debugButton.setFont(new java.awt.Font("Serif", 0, 12));
              debugButton.setVisible(true);
              debugButton.setLabel("debug");
              debugButton.setLocation(new java.awt.Point(130, 39));
              debugButton.setSize(new java.awt.Dimension(50, 20));
              socketStatus.setVisible(true);
              socketStatus.setAlignment(java.awt.Label.CENTER);
              socketStatus.setLocation(new java.awt.Point(65, 26));
              socketStatus.setSize(new java.awt.Dimension(45, 20));
              serialStatus.setVisible(true);
              serialStatus.setAlignment(java.awt.Label.CENTER);
              serialStatus.setLocation(new java.awt.Point(177, 26));
              serialStatus.setSize(new java.awt.Dimension(40, 20));
              numbersFootnote.setVisible(false);
              numbersFootnote.setLocation(new java.awt.Point(49, 79));
              numbersFootnote.setText("*Put spaces between numbers for test send.");
              numbersFootnote.setSize(new java.awt.Dimension(280, 20));
              clearButton.setVisible(true);
              clearButton.setLabel("Clear");
              clearButton.setLocation(new java.awt.Point(260, 178));
              clearButton.setSize(new java.awt.Dimension(58, 19));
              setLocation(new java.awt.Point(0, 0));
              setLayout(null);
              add(cover);
              add(baud);
              add(interpretation);
              add(ports);
              add(socketPort);
              add(softwarePort);
              add(sendToSocket);
              add(sendToSerial);
              add(sendText);
              add(traffic);
              add(debugButton);
              add(socketStatus);
              add(serialStatus);
              add(numbersFootnote);
              add(clearButton);
              setSize(new java.awt.Dimension(356, 274));
              // END GENERATED CODE
              baud.add("110");
              baud.add("300");
              baud.add("1200");
              baud.add("2400");
              baud.add("4800");
              baud.add("9600");
              baud.add("19200");
              baud.add("31250"); //   //31250
              baud.add("38400");
              baud.add("57600");
              baud.add("230400");
              baud.add("460800");
              baud.add("921600");
              baud.select("9600");
              cover.setVisible(true);
              //cover.setLayout(null);
              cover.setLocation(new java.awt.Point(-10, 57));
              cover.setSize(new java.awt.Dimension(964, 287));
         public void relayToSerial(int what) {
              boolean ok = mySerial.send(what).equals("OKAY");
              if (debug) {
                   socketStatus.setText("<IN>");
                   if (ok) {
                        serialStatus.setText("<OUT>");
                   showText(what);
         public void gotFromSerial(byte[] _byteArray){
         //public void relayToSocket(int what) {
             for(int i = 0; i < _byteArray.length; i++){
                 int what = (int) (_byteArray[i] & 0xff);
              if ((substituteChar != 0) && (what == substituteChar))
                   what = 0;
              boolean ok = mySocket.send(what).equals("OKAY");
              if (debug) {
                   serialStatus.setText("<IN>");
                   if (ok) {
                        socketStatus.setText("<OUT>");
                   showText(what);
         public void appendDebug(String what) {
              if (traffic.getText().toCharArray().length > 200)
                   traffic.setText(traffic.getText().substring(50));
              traffic.setText(traffic.getText() + "\n" + what + "\n");
              String strMessage = traffic.getText();
              traffic.setCaretPosition(strMessage.length());
         public void showText(int what) {
              if (interpretation.getState()) {
                   traffic.setText(traffic.getText() + " " + what);
              } else {
                   traffic.setText(traffic.getText() + ((char) what));
              String strMessage = traffic.getText();
              traffic.setCaretPosition(strMessage.length());
         // Standard method to start the applet
         //public void start() {
         //     newSocket();
         //     newSerial();
         public void populatePorts() {
              ports.removeAll();
              ArrayList portList = mySerial.getPortsList();
              for (int i = 0; i < portList.size(); i++) {
                   String[] portAndOwner = (String[]) portList.get(i);
                   System.out.println("owner" + portAndOwner[1]);
                   String port = portAndOwner[0];
                   String owner = portAndOwner[1];
                   //System.out.println(owner + " " + port + " number of Ports " + portList.size());
                   if (owner == null || owner.equals("Port currently not owned")) {
                        boolean alreadyThere = false;
                        for (int j = 0; j < ports.getItemCount(); j++) {
                             String alrdy = ports.getItem(j);
                             //System.out.println(port+ " Ports Already " + alrdy );
                             if (alrdy.equals(port)) {
                                  alreadyThere = true;
                                  break;
                        if (alreadyThere == false) {
                             ports.add(port);
                   } else {
                        System.out.println("Can't use it!" + port + owner);
                   //ports.add(((String) portList.get(i)));
         public void newSerial() {
              serialStatus.setText("!");
              mySerial = new Serial(this, serialType);
              if (ports.getItemCount() == 0) {
                   populatePorts();
         public void connectSerial() {
              if (ports.getItemCount() == 0) {
                   appendDebug("No serial ports found.");
              } else {
                   String status = mySerial.connect(ports.getSelectedItem(), Integer.parseInt(baud.getSelectedItem()));
                   if (status.startsWith("Got")) {
                        serialStatus.setText("<OK>");
                        //mySerial.start();
                   } else {
                        serialStatus.setText("Bad");
                        //populatePorts();
                   appendDebug(status);
         public void newSocket() {
              mySocket = new Socketer(Integer.parseInt(socketPort.getText()), this);
         public void socketStatus(String status) {
              if (status.startsWith("Got")) {
                   socketStatus.setText("<OK>");
              } else if (status.startsWith("Waiting")) {
                   socketStatus.setText("Waiting");
              } else {
                   socketStatus.setText("Bad");
              appendDebug(status);
         // Standard method to stop the applet
         public void stop() {
              mySerial.kill();
              mySocket.kill();
         // Standard method to destroy the applet
         public void destroy() {}
         // Main entry point when running standalone
         public static void main(String[] args) {
              SerialServer applet = new SerialServer();
              applet.isStandalone = true;
              Frame frame = new Frame();
              frame.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowClosing(java.awt.event.WindowEvent e) {
                        Frame f = (Frame) e.getSource();
                        f.setVisible(false);
                        f.dispose();
                        System.exit(0);
              frame.setTitle("Serial Server");
              frame.add(applet, BorderLayout.CENTER);
              frame.setSize(400, 320);
              Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
              frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
              frame.setVisible(true);
              applet.init();
              argsHash = new HashMap();
              for (int i = 0; i < args.length; i++) {
                   String pair = args;
                   String parts[] = pair.split(":");
                   if (parts.length == 2) {
                        argsHash.put(parts[0], parts[1]);
                   }else{
                        System.out.println("Problem with format of parameter "+ pair);
              applet.start();
              frame.pack();
         public void sendTextTextValueChanged(java.awt.event.TextEvent e) {}
         public void interpretationItemStateChanged(java.awt.event.ItemEvent e) {
              numbersFootnote.setVisible(interpretation.getState());
              System.out.println("Interpretation" + interpretation.isVisible());
         public void socketPortTextValueChanged(java.awt.event.TextEvent e) {
              mySocket.kill();
              mySocket = null;
              newSocket();
              System.out.println("Changed Socket");
         public void sendToSocketPerformed(java.awt.event.ActionEvent e) {
              if (interpretation.getState()) {
                   StringTokenizer st = new StringTokenizer(sendText.getText(), " ");
                   while (st.hasMoreTokens()) {
                        try {
                             int what = Integer.parseInt(st.nextToken());
                             if ((substituteChar != 0) && (what == substituteChar))
                                  what = 0;
                             //System.out.println(substituteChar + "debugSend" + what);
                             mySocket.send(what);
                        } catch (NumberFormatException nfe) {
                             System.out.println("You are are entering letters but you checked the decimal interpretation.");
              } else {
                   byte[] asbytes = sendText.getText().getBytes();
                   for (int i = 0; i < asbytes.length; i++) {
                        int what = asbytes[i];
                        if ((substituteChar != 0) && (what == substituteChar))
                             what = 0;
                        System.out.println(substituteChar + "debugSend" + what);
                        mySocket.send(what);
         public void sendToSerialActionPerformed(java.awt.event.ActionEvent e) {
              if (interpretation.getState()) {
                   StringTokenizer st = new StringTokenizer(sendText.getText(), " ");
                   while (st.hasMoreTokens()) {
                        try {
    mySerial.send(Integer.parseInt(st.nextToken()));
    } catch (NumberFormatException e1) {
         appendDebug("Enter a number.");
              } else {
                   byte[] asbytes = sendText.getText().getBytes();
                   for (int i = 0; i < asbytes.length; i++) {
                        mySerial.send(asbytes[i]);
         public void portsItemStateChanged(java.awt.event.ItemEvent e) {
              mySerial.kill();
              mySerial = null;
              newSerial();
              connectSerial();
              System.out.println("Serial Port Changed");
         public void baudItemStateChanged(java.awt.event.ItemEvent e) {
              mySerial.kill();
              mySerial = null;
              newSerial();
              connectSerial();
              System.out.println("Serial Baud Changed");
         public void debugItemStateChanged(java.awt.event.ItemEvent e) {
              debug = debugButton.getState();
              if (debug) {
                   cover.setLocation(-1000, -1000);
              } else {
                   cover.setLocation(-10, 57);
                   //cover.setVisible(true);
              //System.out.println("debugl Changed" + debug);
         public void clearActionPerformed(java.awt.event.ActionEvent e) {
              traffic.setText("");

    Whoops, I'll fix it up so it's more presentable
    for (int row = 0; row <= 8 ; row++){
        for (int column = 1; column <= row; column++ )
         System.out.print(" ");
        for (int i = 0; i < row; i++){
         System.out.print(" " + (int) Math.pow(2,i));
        for (int j = row-1; j >= 0; j--)
         System.out.print(" " + (int)Math.pow(2, j));
        System.out.println();
    }About the space, I was checking to see what adding and removing them would do, although even after fixing it I seem to get a bunched up mass.
    -edit-
    Another thing I've noted is that pasting the text here seems to throw off the indentations which look normal in eclipse.
    Edited by: Yummyfishman on Oct 5, 2007 8:33 PM
    Edited by: Yummyfishman on Oct 5, 2007 8:35 PM
    Edited by: Yummyfishman on Oct 5, 2007 8:36 PM
    Edited by: Yummyfishman on Oct 5, 2007 8:40 PM

Maybe you are looking for

  • Save as dialog on exit in Temp Folder

    Hi, We have made a little program that create a PDF in windows temp folder (C:\Users\username\AppData\Local\Temp). We open it and the user can modify is content. After we check if they change and send back to our application. My problem is when the u

  • 10.5 isync3.0 doesn´t like my K800i any more. Do You know a solution?

    H, since i use leopard my K800i Sonyericsson won´t syncronize any more. isync 3.0 I tried all which used to work with 10.4.9... Installing PhonePluginfolder new -won´t do under Leopard Calender can be updated but not adressbook. In the Isync supporte

  • JSP Custom tag not working correctly for multiple users

    I am doing some support work for an existing web system. When doing single user access (a custom tag is called within the JSP); the output of the Custom tag is fine. However, during multiple user access to the JSP, as I could see on the log files, 2

  • Directory structure for different drivers

    I have different instruments and am creating Vis for these instruments to support custom features. These Vis will then be used as subvis to create application. Say there is DMM, Scope and power supply. Will creating their own llbs (one llb for DMM, o

  • Backup photos to DVD

    Hi all, Im new to Aperture, switched over from iP{hot as now taking my photography to another level...loving it, it's a wonderful program Did a search before asking, and got some advice, but what I wanted to know is... Whats the best method to backup