can't resolve symbol ResultSet in IntelliJ - mysql

I created a project that has add mysql-connector-java-5.1.34-bin as a library to the project using IntelliJ 13, but when I tried to import com.mysql.jdbc.ResultSet, the IDE shows that it can not resolve the symbol ResultSet. I'm wondering how to resolve the issue.
[EDIT] when I tried import com.mysql.jdbc.PreparedStatement;, it has no problem.
cheers

Looking inside the MySQL Connector/J .jar file (e.g., by using the Package Explorer tree view in Eclipse) we see that com.mysql.jdbc does contain PreparedStatement.class but does not contain ResultSet.class
That is, you cannot
import com.mysql.jdbc.ResultSet
because it doesn't exist. What you really want to do is import PreparedStatement, ResultSet, etc. from java.sql, as in
import java.sql.PreparedStatement;
import java.sql.ResultSet;
or the lazy option
import java.sql.*;

Related

No module named _caffe

_caffe.so is present in the caffe/python/caffe folder
Have set the path variable as export PYTHONPATH=/home/itstudent1/caffe/python:$PYTHONPATH.
make pycaffe was also successful.
I am not understanding what else might be the cause for this error. I am able to import caffe in python.
File
"/home/itstudent1/MajorProject/densecap-master/lib/tools/../../python/caffe/pycaffe.py",
line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ ImportError: No module named _caffe
It seems like you have two versions of caffe:
one in /home/itstudent1/caffe and another in /home/itstudent1/MajorProject/densecap-master.
While the first version is built and compiled, the later is not and your import looks for _caffe.so in the later.

ActionScript 3.0 The Definition Of Base Class GameFrameWork Was Not Found

package com.efg.games.stubgame {
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.geom.Point;
import com.efg.framework.FrameWorkStates;
import com.efg.framework.GameFrameWork;
import com.efg.framework.BasicScreen;
import com.efg.framework.ScoreBoard;
import com.efg.framework.SideBySideScoreElement;
public class Main extends GameFrameWork{
(Note: This is just one section of the code).
The Error is stated in the title.
The route to GameFrameWork.as is classes/com/efg/framework/GameFrameWork.as
the route is
Source
classes
com
efg
framework
GameFrameWork.as
projects
stubgame
flashIDE
stubGame.fla
stubGame.as
com
efg
games
stubgame
Main.as
StubGame.as
Add ../../../../../../../classes/ to your "Source Path" panel.
One option is to simply merge the com folder from classes into the com folder from flashIDE. If you divided them out like that though, you may not want to do this.
I'm not sure which IDE you're using, but in the project's properties, the IDE should have a place for you to add folders to the "build path". If you add classes's com folder to the build path, it should look in there as well for class definitions and such.

MXMLC compiler missing filesystem library

I've had not trouble until this point directly from MXMLC command line. While compiling Actionscript 3 code I ran into a dependency problem.
import flash.filesystem;
and I get
Error: Definition flash:filesystem could not be found
There are another or two file-related libraries such as filestream. Where can I find these standard libraries and how might I add them to my MXMLC library PATH?
What are the specific classes you are trying to use? If you want to import all of the classes in the flash.filesystem package you need a * at the end of that import statement. Otherwise you need to append the class name(s). Something like one of these:
import flash.filesystem.*;
or
import flash.filesystem.File;
The other thing that might be an issue is the values in your flex-config.XML (or air-config.xml) file that is part of the SDK. You might need to configure this to include the classes in the AIR sdk, etc.

AS3 Libraries: Am I missing FileStream?

I think I'm missing some classes in my library.
If I type in 'import fil', FD4 autocompletes to only this:
import flash.net.FileFilter
import flash.net.FileReference
import flash.net.FileReferenceList
I saw people using FileStream and wondered why I don't have this class available.
Do you guys know why this happens and how I can obtain the library?
FileStream is only available when targeting AIR 1.0+.

Can't import qnx.fuse

I'm creating a BlackBerry app for PlayBook using Adobe Flash Builder. For that I need to import qnx.fuse.* and it shows an error message telling The import fuse could not be found. But I can import some other BlackBerry components. For example, I have the following imports:
import qnx.dialog.DialogButtonProperty;
import qnx.dialog.PromptDialog;
import qnx.display.IowWindow;
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.text.Label;
But, only the last two imports show errors. Why is that?
Thanks in advance!
The new Fuse components are the correct ones to use for AIR development at Playbook.
The API is documented at https://bdsc.webapps.blackberry.com/air/api
Maybe you can't import qnx.fuse.*; because there are no classes in that folder, it just holds other sub-folders. It's ok.
What Blackberry Playbook sdk version for air you have installed.
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.text.Label;
These imports can be used if you are using Flashbuilder 4.6 & Air version 3.1 , below it will not supported.
https://developer.blackberry.com/air/apis/
You need to do two things to get access to those classes.
Add the native extension QNXSkins from qnx
Add the quxui.swf to your Library Path (Properties->Build Path->Library path). That file is located at /Application/ResearchInMotion/blackberry-tablet-sdk-3.1.0/frameworks/libs/qnx (on Mac).