I have some experience with java ee development and some web applications.
Now I have to create a java program on AS400, one I have never heard before. Program is to create xml file from db2.
Do you have any idea how I should approach the development with no knowledge of AS400 and DB2?
I do appreciate any kind of suggestions and help!!!
Well, in general, Java, on IBM i (previously known as AS/400), is java ... and DB2 is accessed via JDBC... so there isn't a whole lot different to consider.
You'll want to get the JT400 library for a JDBC driver. Javadocs for JT400 can be found here.
If you have specific questions, or run into problems, consider subscribing to the JAVA400-L mailing list.
Related
I'm learning Java programming now, and I wanna use Java classes that I created in my PHP systems. Every tutorial what I found is too old and the links doesn't exist anymore. I tried to use "apt-cache search php-java" in my terminal but no results came (I think this just works for repositories, am I right?).
Does someone have any help?
I use Ubuntu 15.04, php5.6.4, java 1.7.0_85 and my system is 64bits.
Thanks for the help :)
I have noticed some websites using like this, can not remind now, but I think you can do that through JavaScript . Passing the data to JavaScript and retributive it and again use and send result through JavaScript . PHP has support for instantiation of Java objects and using them transparently as PHP objects.
and Integrate PHP and Java Applications with Oracle WebLogic Server and Zend Server 5.0
may help you , but truly never did it and having no good knowledge of it.
In the IT class room I constantly hear chat about the derby database not being built for netbeans. I write code in java and becuase I am learning to implement databases and I have the oppurtunity to be taught sql code. My question is, is the derby database not meant for netbeans and if not why why? So far it works fine for me. Our education system is a bit out of order so I like to be well informed about things.(You don't have to worry about making sense about the last statement).I use the database for recording details in shop and company scenarios so far. So answer could relate to this.
The Java DB(Derby) database is Oracle's supported distribution of Apache Derby. Java DB(Derby) is a fully transactional, secure, standards-based database server, written entirely in Java, and fully supports SQL, JDBC API, and Java EE technology. The Java DB database is packaged with the GlassFish application server, and is included in JDK 8(except Mac OS X) as well.
There is a whole official NetBeans IDE Tutorial about Working with the Java DB(Derby) Database. Whoever has suggested you those incorrect details,he might not have got to work with Derby Database OR might be a fan of Oracle/MySQL,etc. databases! But,I and all the commentators post suggest you to move frankly with Derby database as there is no such problem!
Also,I am leaving you the official tutorial's link---> Official NetBeans IDE Tutorial on Java DB(Derby) Database
I have created a simple database application as a part of my college assignment. I have used Java (Eclipse IDE) and MySQL (command-line and phpMyAdmin) for the purpose of creating and using the database on a stand-alone application. The thing is that my database is stored on the localhost.
An easy way to make my application usable on another person's computer would be to convert it into an Executable JAR (since, I am using Java). However is there any way by means of which I can also install the database directly to the other person's computer (on the localhost)?
Something like an installer or so?
I read online that a simple thing would be to manually install MySQL and create the database. But I don't know PHP and typing the MySQL commands / using phpMyAdmin would be the only choice. But is there any better way to go about doing it?
Thanks for any help.
EDIT1:
I don't know if this helps but I have no previous knowledge regarding creating installers for projects. All I have done until now has been exported either as an executable JAR or as source code. I am still studying.
EDIT 2: Creating an installation for a java project <- is a similar question but it does not help my cause. It recommends not using MySQL. Our college has compulsorily asked us to use MySQL and nothing else. That is what they taught us and expect us to work only with it. Please help.
You don't need PHP here, so don't worry about not knowing it. PHP is just another programming language (a web-based interpreted one), and isn't going to help you install MySQL.
You should probably ask your instructor for assistance, because anything we come up with would be a guess about how they intend for your to operate, whereas they know and have done this before many times. That being said, we can make reasonable guesses toward helping you.
You could probably have one master MySQL installation that all your installed Java applications access. This is probably what you want, rather than installing the MySQL application on each individual computer. Your Java application then connects to your college's MySQL server rather than localhost. This requires configuring the MySQL server for remote access, but if that's what they want you to do they probably have already done so.
The other option is to have an installer that actually installs MySQL and runs a series of scripts to import the expected database structure. I can't imagine this is actually the intention, but there are many different installers that can help with this, and it depends how what platform you're developing for as to which automated installation tool might work best for you. You can, to a large degree, script the installation of the official source, so you may simply be able to tweak that once you find the customization options you need, then wrap that in a simple shell script which first installs MySQL then imports your database structure. I can't imagine this is what your school intends, but that's how you would do it if it were. That or Chef, Puppet, or your distribution's built-in package manager. Too many options to cover them all thoroughly here.
I am currently working on a simple web-based program involving a user typing in a word in a client program(written in Java), and sending the word and other basic information to a database. I am finished with the word typing portion, but I have no idea what to do about the database. What software should I use for the database? Here are the requirements that I need for the database:
Read/Write Functionality
Java compatibility
Easy to use/set up
Has plenty of tutorials/documentation
Thank you all for your help!
It sounds to me that this is either a dev experiment or a school project. If this is something you're playing with I think the easiest/quickest would be to go with Sqlite. Here is some info on using it with Java: Java and SQLite
If it is something you intend to deploy in a production environment then go with mysql and jdbc.
How about sqlite?
Its very simple, extremely well supported and if you need to do some more advanced SQL queries it can do that as well.
I would use MySQL and a JDBC driver for communicating with it. The trick is to Google
java mysql jdbc
That should give a lot of usefull results. Good luck!
If you're just learning about databases and getting started, nothing is simpler than an sqlite database since it's actually nothing more than a static file. Here is a jdbc driver for it: http://www.zentus.com/sqlitejdbc/
I'm trying to figure out how to use MySQL with Java EE 6. I'd like to work with it locally on my machine so I can get some experience. Is it possible to do this? I've seen this MySQL Connector and I expected it to be like a class or something, but it's a lot more than that and I'm not sure about how to implement it. Can anyone offer any advice on where to get started? I did find one article that wasn't as detailed as I'd hoped, but it was from 2004 anyways, so it's no longer relevant.
The JDBC Database Access trail in the official Java documentation describes how you access databases from Java. The JDBC Basics Getting Started page says that the tutorial has been tested with MySQL.
You will need to install the MySQL JDBC driver (I presume that's what you've linked to above) and have it on your classpath in order for the database connection to work. But other than having it on your classpath, you shouldn't need to interact with any MySQL-specific classes from your code.
So basically you are using EasyPHP to stand up a MySQL instance on Windows? Seems like a little bit of overkill but in any case here is what you can do:
Download and install Jboss 7 (Full profile).
Run JBoss (/bin/standalone.bat>
Download MySQL connector for Java
Unzip, then copy the MySQL connector Jar to /standalone/deployments
Login to JBoss admin console (http://localhost:8080)
Browse to Connector/Datasources and define a new datasource pointing to your MySQL DB
Thats it for setting up a server environment. Now you can do all your JEE6 goodness in your favorite IDE and deploy the code to your Jboss server. Or you can skip all that and use the baked in goodies in NetBeans. A good tutorial can be followed here.