How to deal with java integrity??

Hi everyone,
it's just few months that I have started to use Java and since, I've been really confused how to use it. As I've been using C++ before, it's really easy for me to handle a few libraries and keywords and write every thing all by my own. But in Java, TOOOO many libraries and keywords all with different procedures and different cases that really bothers me and I can't understand how to deal with all these. As an example, When I just want to start and write a program, I start searching the net and wow. too many different classes and different Keywords that I get too confused and I prefer not to continue. Would someone please help me and tell me how to find a solution for this essential problem???

asker wrote:
I've been using C++ before
But in Java, TOOOO many keywords Really? C++ has 63 keywords:
asm    
auto   
bool   
break  
case   
catch  
char   
class  
const  
const_cast 
continue   
default    
delete 
do 
double 
dynamic_cast   
else   
enum   
explicit   
export 
extern 
false 
float  
for    
friend 
goto   
if 
inline 
int    
long   
mutable    
namespace  
new    
operator   
private    
protected  
public 
register   
reinterpret_cast   
return 
short  
signed 
sizeof 
static
static_cast    
struct 
switch 
template   
this   
throw  
true   
try    
typedef    
typeid 
typename   
union  
unsigned   
using  
virtual    
void   
volatile   
wchar_t    
while   while Java has 52, 2 of which (goto and const) are not used:
abstract  
assert
boolean    
break  
byte   
case  
catch  
char   
class  
const
continue   
continue  
default   
do 
double 
else  
enum
extends    
final  
finally    
float  
for   
for    
goto 
if
implements 
import 
instanceof 
int   
interface 
long  
native 
new   
package  
private  
protected 
public 
return 
short 
static 
strictfp
super 
switch
synchronized
this
throw
throws
transient
try
void
volatile
while

Similar Messages

  • How to deal with java.io.EOFException error in Java application?

    Recently a java application called Jin stopped working on my iMac under 10.6.8. On startup it gives a java.io.EOFException error. When I boot from a full backup on external hard disk, the program still works fine. It has run without problem for at least two years.
    This program logs onto an online chess community called ICC (see chessclub.com) using a non-http protocol.
    I have tried everything I can think of to repair the problem, including:
    -- Reinstalling both Jin and Java
    -- Playing with Java Preferences, in particular trying both 32-bit and 64-bit versions
    -- Discarding a couple .plist files associated with Java and Jin
    -- Repairing permissions
    -- Replacing /usr/share/java/Tools with version from backup disk (I created a Smart Folder to find files recently changes, and these were the only java files that came up
    I've run out of ideas. It seems to me that some obscure Java support file has been corrupted, but I have no idea what or where.
    Is it a good idea to replace the entire /Library folder from backup, or is that going to cause a problem?
    I have a very bad feeling about replacing /System from backup.

    Please enable the following debug
    CA server
    /atg/epub/DeploymentServer
    loggingDebug=true
    /atg/deployment/DeploymentManager
    loggingDebug=true
    loggingThreadDebug=true
    Agent Servers
    /atg/epub/DeploymentAgent
    loggingDebug=true
    recreate and attach the full logs
    ++++
    Thanks
    Gareth
    Please mark any update as "Correct Answer" or "Helpful Answer" if that update helps/answers your question, so that others can identify the Correct/helpful update between many updates.

  • How to deal with credentials for external applications using a Java Client/

    Hi Guys,
    This is the case. I am integrating an external application with an ADF Application. I have implemented some programmatic ViewObjects that are being filled up by a REST Java Client Wrapper. Everything is working fine but the issue is that the credentials the wrapper is using are hard coded inside the java class. I am thinking to ask for the credentials at the beginning of my taskflow and then store them somewhere and use them then to create my client wrapper (passing them in the constructor).
    However, I don't know if my approach is good and I would like you to share your experiences or how to deal with this.
    Regards

    You can use Credential Store Framework to store the credentials securely in the weblogic server instead of hardcoding in the java class.
    The Credential Store Framework:
    - enables you to manage credentials securely
    - provides an API for storage, retrieval, and maintenance of credentials in different back-end repositories
    Check the documentation on CSF API -
    http://docs.oracle.com/cd/E29505_01/core.1111/e10043/devcsf.htm
    Major Steps -
    1. Create a credential map and key in em console to store the password (http://docs.oracle.com/cd/E25054_01/core.1111/e10043/csfadmin.htm)
    2. Use CSF API to retrieve the stored password
    3. In jazn-data.xml give permissions to access CSF key and map

  • How to deal with this problem while Flex Integration   SSH

    Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
    Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
    I have  exist project used  SSH ,and now need flex to be use in some new unint.
    I hava follow these step to write my code , please help me to pickup the misstake  i had token.
    (flex4.0  spring 3.6 strust2.2 **)
    1. download the Blazeds file  and spring-flex-core-1.5.2.RELEASE.jar
    (org.springframework.integration-1.0.3.RELEASE.jar also include)
    2. unpack the Blazeds copy the flex folder to WEB-INF 
    3.add the lib/*  to my project lib folder
    4.add some declaration in the web.xml
    5.new a flex-application-config.xml 
    ^^^^ and so on.  I don't know how  to deal with this problem!!!
    Waitting for help!

    The information you provided is totally useless for determining the problem.
    If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH).

  • How to deal with the barcode?

    i'm developing a file storage system in java, there're two barcode on each file(one is pdf417, the other one is code128) , but now ,there's a problem confused me :
    i use the barcode scanner to scan the file and get images of these files from the scanner , but i have no idea how to deal with these images,
    i need the barcode information on the images, and i know there're some java components can help me to read the barcode from images , for example : BarcodeReader from Barcode Library, but these components were too expensive for me , is there any other way can solve this problem?

    yes, look for a cheaper component...
    Or write your own...
    Or save up until you can afford the more expensive ones...

  • How to deal with special character in source file

    Hi experts,
                      i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
    regards,
    Saurabh

    you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    For more details check this guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to deal with images stored in oracle

    hi,
    can anyone help me to solve this issue please:
    in fact i am developping a swing based standalone application based on a TCP/IP client-server connection, so the point is to display on my frame for each student his information and also his personal picture
    first step : storing the personal picture into the oracle database from a specefic frame that allows to specify each NEW student's profile and his photo.
    step 2: as needed, a specefic frame allows to retrieve all the information related to a student and his photo to ( in a jlabel or other swing componenet)
    how to deal with this storing and then the retriving from the oracle DB
    any help please!

    If I understand well your problem, you need your client java application to store and retrive information from an oracle DB.
    This can be done via JDBC.
    Here's the tutorial:
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
    Look at
    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html#JDBC2018
    for storing and retriving binary data (like java serialized objects (Images for example))

  • How to deal with 0...n or 1...n mappings?

    Hi all,
    I'm relatively new to BPM. I've already made several processes that are working fine. However, I'm now stuck because, for the life of me, I'm not able to understand how to deal with data mappings of nodes of a cardinality greater than 1...1.
    I'm used to dealing with 0...n inputs of Web Services in Webdynpro Java and CAF Application services, using java code... but I just don't get how to deal with these in a BPM data mapping scenario.
    Let's say you have a Web Service whose input is a node called "Employee", where you can add n Employee objects, like this:
       Employee (0...n)
          FirstName: String
          LastName: String
    How do you:
    1- map a 0...n context node from a Web Dynpro or Web Service output, already containing several employees, into this Employee 0...n WS input node?
    2- map a 0...n context node from a Web Dynpro or Web Service output, containing NO employees, into this Employee 0...n WS input node, without getting an error and the BPM crashing because it says the employee element is not found?
    Hopefully someone can help me with this, because I'm about to go the way of calling the web service n times, one employee at a time, instead of one time with a Employee object with n registries in it.
    Thanks!

    Hi Abhijeet,
    i think i should have mentioned this earlier. My Employee node is inside another node.  So, the actual input structure of the WS is this:
    InputValues (1...1)
       Employees (0..n)
          FirstName: String
          LastName: String
    This scenario works OK in BPM when mapping a 0..n node using deep copy as Jocelyn explained, but I still doesn't work if I want to pass an empty (not null) Employees array.
    If I go to the WS Navigator and run this WS with the following parameters, it runs ok (I get an output message saying no employee was selected, which is how it should work):
    InputValues -  "Is null" checkbox not activated.
       Employees - "Skip" checkbox not activated
          FirstName - "Skip" checkbox activated
          LastName - "Skip" checkbox activated
    However, if instead of activating the checkbox of, say, "FirstName", I enter a "" value, I get an error from the WS saying that's not a vaild first name, which is also how it should work.
    In java code, I would just pass an empty InputValues object to the WS, but I'm not sure how to do this in a BPM without it being considered null, and without having to set on of its String-child values to "".
    Do you know how to achieve this?

  • How to deal with hindi lang

    I am storing text messages in a PropertyResourceBundle as follows
    txt_EmailAdd = {mel ADres
    txt_Password = pasvDR
    I made the above file in MSword using hindi fonts
    The folllowing text is supposed to be in hindi
    {mel ADres
    pasvDR
    but it does not show the text in hindi it still shows in English but when I open the above text file in MSword it shows the text in hindi
    Please tell me how to deal with this problem . I hope you people reply as eaarly as possible.
    I also have another prob, I am developing a website using jsp+servlet now I have made the above mentioned property file and stored it in c:\tomcat5.0\webapps\emailreadersevice\IndexMessagesBundle.properties
    but when I access it from my application's index.jsp file Tomcat gives me following exception
    java.lang.NullPointerException
         java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:714)
         java.util.ResourceBundle.getBundle(ResourceBundle.java:579)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My index.jsp file is stored in c:\tomcat5.0\webapps\emailreaderservice\index.jsp
    In my index.jsp file i have written the following statement to get the IndexMessagesBundle but tomcat gives me the above exception.
    ResourceBundle IndexMessages = ResourceBundle.getBundle("IndexMessagesBundle",currentLocale);  
    Please guide me abt how to go abt it. Also tell me whether I am doing the right thing or not. If no then please tell me the right steps to follow                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi one_dane
    I have made the property file using hindi fonts to type the following thing
    { m e l A D r e s
    p a s v D R
    No the above values are not place holders Infact in order to type EmailAddress and Password in hindi I had to type the above keys. so when I put system.out.println in my jsp page it does not display any hindi text but the above keys which i used to type in order to display hindi text in my txt file.
    But I think i am not going on the right track should i type the unicode values for hindi text which is of the form \udddd in my property file. I have the unicode chart for hindi fonts so I can look up the chart and type appropriate unicodes(\udddd) to display Email Address and Password in hindi. Or am i still not getting how to do it? If not then please tell me how did you create your hindi property file. Is the following that you typed in your property file or is it the output of converting your property file into unicode using native2ascii
    title=\u090f\u0926\u0938\u093e \u092a\u0917\u0932\u094d\u0917 \u0942\u093e\u0902\u0942JSP i18n issues
    Please reply as soon as possible and hanks a lot for your help.
    Eagerly waiting for a reply,
    Heti shah

  • How to deal with this problem?

    How to deal with this problem?
    We plan to use Oracle Coherence (In Memory Data Grid) for a large-scale application. In order to keep the database table data in Coherence caches, we will create all the corresplonding Java objects (entities) and construct the persistence system using JPA/EclipseLink+JDBC. In this way, any in-memory object update will be persisted to the corresponding database tables.
    The problem is that some existing application codes are updating these database tables directly now. If the direct-database-table update is not permmited in the persistence environment, we have to discard most of the existing application scripts.
    I want to know, in this situation, should I discard most of the existing scripts?
    Are there any other solutions?

    Allowing writes from both cache & DB is possible with its own set of issues.
    The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
    If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
    If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache.

  • How to deal with '$' sign in the class name?

    I want to put my Java Applet game on my homepage. But the server which I set up my homepage doesn't support the file name like XXX$XXX.class, which has '$' sign in the file name. Would anyone can tell me how to deal with this problem? And how can I make the game work on my homepage? Thanks.

    Don't forget, this include both concrete inner classes as well as any anonymous inner classes you create, like
    myButton.addActionListener(new ActionListener()
      // Yada Yada Yada

  • How system deals with co commitments

    Situation is:
    PO:
    1 line purchase order, account assignment category A (asset) with 5 AU (order unit) and with 5 WBS elements each on 1 AU.
    1 AU=37.480,00u20AC
    Invoice:
    Partial invoices comming to first PO line and first WBS element (first partial invoice, not full amount)
    1. invoice 19.900,00u20AC to first WBS element  0,63 AU
    2. invoice  5.000,00u20AC to first WBS element   0,15 AU
    3. invoice 12.580,00u20AC to first WBS element  0,52 AU
    summary 37.480,00u20AC to first WBS element   1,3 AU
    And the question is how system deals with co commintments when the accountant assign bad quantity to first line of PO and the first WBS element. Accountant exceeded quantity in invoice:
    invoice = 1,3 AU and in purchase order is 1 AU
    in this situation how co commitments are calculated ???
    thanks for help
    M.

    1. The system property java.library.path and likewise, the classpath one, are really only there (as far as I know) to show what was in the environment when the JVM started. Updating the properties doesn't actually change the environment. Just like you can probably change "os.name" from Windows to Linux, but that doesn't mean the system changes to run Linux.
    2. mapLibraryName just translates the library file name to the system dependent library name, and has nothing to do with the actual environment.

  • Help!!! How to deal with ClassNotFoundException??

    How to deal with ClassNotFoundException without starting Java Runtime Environment??
    the class file:
    import java.applet.Applet;
    import java.awt.Graphics;
    public class Hello extends Applet {
    public Hello() { }
    public void paint(Graphics g) {
    g.drawString("Hello!", 5, 25);
    the html file:
    <APPLET CODE="Hello" WIDTH=300 HEIGHT=200 >
    </APPLET>
    But it throw a error
    Error loading class: Hello
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: Hello
    at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
    at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
    at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.run (AppletPanel.java)
    at java/lang/Thread.run (Thread.java)
    What 's the rule of com.ms.vm.loader.URLClassLoader finding the class??

    If you compiled the applet with SUN jdk then use -source 1.3 -target 1.1 to make it run in
    msjvm (Microsoft Java Virtual Machine). Note that this is a bad idea because MS is
    phasing out the msjvm.
    If you don't want to ue msjvm (good for you) than use the object tag in your html file to tell
    the browser you need to run this applet with sun jre:
    http://java.sun.com/products/plugin/versions.html

  • How to deal with the rule that do not use "object" class to declear a class

    I run my flex project in sonar. And there is a rule "Do not use Object class ".
    I just want to know how to deal with this problem.
    I mean, when I try to write a base class, I don't know which kind of class will be transfered in by reference, which type I can declear instead of "object"?

    Check out this example:
    The moment I put in the code >> box1.addItem("hello"); << and run the application, the BusNameListener is fired. Hope this makes sense.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class JFrameExample {
    private JComboBox box1;
    public JFrameExample() {
    box1 = new JComboBox();
    box1 .setMinimumSize(new Dimension(300, 24));
    box1 .setPreferredSize(new Dimension(300, 24));
    box1.addActionListener(new BusNameListener());
    box1.addItem("hello");
    JFrame f = new JFrame("This is a test");
    f.setSize(400, 150);
    Container content = f.getContentPane();
    // content.setBackground(Color.white);
    content.setLayout(new FlowLayout());
    content.add(box1);
    f.setVisible(true);
    class BusNameListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    JComboBox cb = (JComboBox) e.getSource();
    String item = (String) cb.getSelectedItem();
    if (item != null) {
    JOptionPane.showInputDialog(null,
    "Specify...", "File Import",
    JOptionPane.OK_CANCEL_OPTION);
    }

  • How to deal with sales in Re_FX

    Hi  Experts
    we have Sales of Villa, apartments and commercel space, how to deal with there scenarios as there is no sales concept in RE-FX. and any how to intigarate with PS for monitaring construction etc.
    any developements if you experts would have done or any suggestions.
    thanks in andance.
    Warm Regards
    Ryan

    Hi Ryan,
    We can;t use RE-FX for sales scenarios, only workaround's are there.
    Create one contract-type for sales and add condition type in conditions as per the payment plan agreed with the customer. It will work for only pre-defined payment plan.
    If you want PS integration with milestone billing, it is not possible through RE-FX. You can use SD module for sales process.
    One of my previous implementations, we have achieved this through development between SAP SD & RE-FX. It is huge development and continuous monitoring is necessary.
    The development is similar to IS-RE (component of ECO), create sales order for sales units. Instead of sales units, we made the development sell rental units through development whenever we created sales order for a rental object, just go to RE object and change the vacancy.
    But this is not advisable to create integration with SD & RE-FX.
    rgds,
    Srini

Maybe you are looking for

  • BPCNW 7.5 SP7 - Unable to connect to backend after installation

    Hi Experts, I have installed the BPC NW 7.5 SP7 with CMS authentication but when i launch the BPC server manager, it ask for user id and password. But when i enter the password for the bpc_sysadm, it gives the error "unable to connect to backend Abap

  • Cache server-Content server

    Hi,     1. What is the procedure to copy originals from local content server to central content servers located at different geographical locations. (There is a report  SAPKROTP, but i am unable to execute it). Even if copy it, will it display in DIR

  • Some of my contacts are NOT SHOWING in my 'all Con...

    I just bought an Android tablet today and added the Skype App to it. I can log in just fine but for some reason several of my contacts are missing.  They are in my contacts on my computer but all but five of them are missing from my Android including

  • QuickTime Pro audio exporting error - help please!

    So I've got Perian installed to read 1080p HD movies and I opened up .mkv files in QuickTime Pro and allowed it to read the files into memory (let the grey bar go for a few minutes).  Once that was done, I wanted to export the DTS 5.1 surround sound

  • Roboform exits after being used - Toolbar disappears from FF list

    I am running FF 9.0.1 with RF 7.6.9 Until 1/15/12, everything was working perfectly. Now, the first time after startup, RF works it should. If I log off an application, then log back on - the RF toolbar is not there and is not listed in the FF list o