Simple Error In a Test
Hello,
I am trying to do a simple Class.forName() to see if I have my driver string in-line.
It is test code and looks like this:
import java.sql.*;
public class TestDB {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch(ClassNotFoundException cnfe) {
System.err.println("Error loading driver: " + cnfe);
But I get the following error:
Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I don't know why this is happening. I put the .jar file that oracle gave me into my jdk\lib directory and my classpath is set to look there? The jar file is called "classes12.jar". I have that same "classes12.jar" also in the lib of my tomcat (which I have off right now) and the path also set there and the connection with the above on a JSP page works?
Thanks
Scott
try setting the classpath to the actual classes12.jar file
on my home pc the classpath in the autoexec looks like this:
SET CLASSPATH=./;c:\jdk1.2.2\lib\classes12.zip;
regardless, what environment your working in, it is best to add the .zip/.jar file that you want to import into your classpath, if you still have issues with it then you can always try to unjar/unzip the files and point to that directory instead.
good luck
Similar Messages
-
Error While Genrating Test Report in Test Plan Management
Hi Guru's
I am getting an authorization error while generating test report via STWB_info.
Just i selected the test package and while click the test report i am getting this error.
Error during authorization check
Message no. TWBHS540
Guide Me to solve this issue
thanks in advance
regards
AnandhHi,
Please try the following:
Start transaction SMGENDOC03
Do not change anything but just hit the save button.
Afterwards restart transaction STWB_2 and try again to generate again.
Hope this helps.
Cheers
SH -
AppContainers_test fails with error during pre-test configuration checks
Hello,
AppContainers_test fails with error during pre-test configuration checks:
"[FAIL] The machine is not properly configured for testing: the test directory "C:\Windows\SYSTEM32\" is not ACL'd to allow execute permission for "APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES"
But that kind of permission for APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES was allowed, also i tried to allow full access, but error was the same.
In the test WindowsFilteringPlatform_Tests, the same requirement "REQ - Wfp-based products must not block App Container apps operating within their declared network intentions by default" was checked successfully.
How can i pass successfully AppContainers_test?
I installed lastest versions of QFE and filters on my server, but it didn't help.Hi M'Alerter,
I have the same issue, have you found a solution to your problem ?
Cheers,
Ghalem -
RFC error with SAPOSS (test connection)
Hello All,
RFC error with SAPOSS Test connection
Language:EN
Client :001
User :OSS_RFC
Target system settings:
Balace load = Yes
RFC error is below:
Connection test SAPOSS
Connection type: R/3 connection
Connection error Error opening an RFC connection.
ERROR partner not reached (host 209.94.207.139, service sapdp99)
LOCATION SAP-Server orionbw_QBW_00 on host orionbw2 (wp 0)
DETAIL NiPConnect
CALL connect
COMPONENT NI (network interface)
COUNTER 9
ERROR TEXT Network is unreachable
ERROR NUMBER 101
MODULE nixxi.cpp
LINE 8628
RETURN CODE -10
SUBRC 0
RELEASE 640
TIME Wed Jul 30 10:06:05 2008
VERSION 37
Please let me know how to proceed.
Thanks in advance.
Best Regards,
PratyushaHi Markus,
I went to OSS1 transaction Menu ---> Parameter --> Settings -
> SAP Routers at Customer Site ---> SAP Router 1
i have Added Name and IP address and instance No.
Now its throwing another error:
=============================================
ERROR rgcwebsrv: route permission denied (orionbw2.rgc.corp to 147.204.2.5,
LOCATION SAProuter 37.11 on rgcwebsrv
COMPONENT NI (network interface)
COUNTER 5580
MODULE
LINE
RETURN CODE -94
SUBRC 0
RELEASE 640
TIME Wed Jul 30 10:41:28 2008
VERSION 37
=============================================
We are struck here.
Thanks in advance
Best Regards,
Pratyusha -
Collection plan going to error on cloned Test server
Collection plan going to followin error on cloned Test serverlog, while it is workng fine on our Production server:
Concurrent Manager encountered an error while attempting to start your immediate concurrent program &PROGRAM. Routine &ROUTINE received a return code of failure.
Kindly help me in this regards.
ThanksCollection plan going to followin error on cloned Test serverlog, while it is workng fine on our Production server:Please post the details of the application release, database version and OS.
Concurrent Manager encountered an error while attempting to start your immediate concurrent program &PROGRAM. Routine &ROUTINE received a return code of failure.Please check the CM log file for details about the error.
Thanks,
Hussein -
Hello, I've just tested my form on all mac navigator (safari, google chrome, opera, firefox) everything works fin, but I've encountered a message error when i tested it on a pc (windows 8, explorer 11.0) : [ref: 4TjwhtHy2SB5C8LI-Eku2A, serverError]…
Hello, I've just tested my form on all mac navigator (safari, google chrome, opera, firefox) everything works fin, but I've encountered a message error when i tested it on a pc (windows 8, explorer 11.0) : [ref: 4TjwhtHy2SB5C8LI-Eku2A, serverError]…
-
Mapping debbuging error:DBG1006: Error while initializing test data
Hi,
I have created a mapping in which I am trying to delete data from a table based on exisitence of rows in another table with a filter condtion in between them.When i try to run the debbugger, it throws following error:
============
Analyzing map for debug...
Retrieving Control Center connection info...
Connecting to Control Center schema...
Checking character set of Control Center schema...
Configuring sources and targets...
Mapping Debugger Error:
oracle.wh.service.sdk.mapping.debugger.WBMappingDebuggerException: DBG1006: Error while initializing test data for sources and targets:
oracle.wh.repos.sdk.CMPException: Trying to access invalid Object.
Element ID: 110138
Status: 4
Owning FCO: 98409
==================
Any idea what could be the possible cause?
Query which I am trying to simulate is of following type:
Delete from TableA t1
where exits(select 1 from TableB t2 where t1.col1 = t2.col1 and t2.col2 = 'delete')
Thanks
AJ.Oops..thats weird.
Tell me one thing...then how gud is the code generated in terms of working...if someone has to really test the code pre-hand for expected business logicWhy i am raising this concern is becoz there are many features for which OWB provides support in indirect way(workaround) like exists/not exists.
Do we need to deploy mapping each time and then test through a run from Control centre?
Other thing, As far i understand, the code generated is not in such a format that one can directly copy paste it in any sql/plsql editor and test it...
Regards
AJ. -
Error generating the Test Frame
Hello all,
I have created few Function Modules (SE37) which are working fine on the dev system. After I moved them to the Quality system, when I tried to run them, all of them are giving this error before even going to the test screen:
"Error generating the test frame"
When I check the details of the error, by clicking on the "?" on the error window, it says there is a missing structure, that I have used in my FM. But the structure is not missing. It does exist in the system (I checked from SE11)
Can someone tell me how I can resolve this problem?
Thanks and Regards,
ReenaHi,
Just go to ST22 and see the dump created. It will tell you the table or structure name ( Standard ) that is missing/inconsistent in the quality system. You can consult with your basis team to rectify this. Some tables may be partially active or with run time inconsistencies.
Regards,
S. Chandra Mouli.
Message was edited by:
Chandramouli Subburathinam -
E message in production server Error generating the test frame
Hi all experts
I developed a object using layout in smartforms ....
we have 3 server in my company .....
1] development
2] Quality
3] produ
it is giving me a error 'Error generating the test frame'
plz tell me
thanxHi all experts
I developed a object using layout in smartforms ....
we have 3 server in my company .....
1] development
2] Quality
3] produ
it is giving me a error 'Error generating the test frame' while i am checking testing after export and inport into final production server ..
can any one plz tell me the solution.....
plz tell me
thanx -
Smartform-Error generating the test frame
i am passing a internal table to a smartform and defined the associated type for that internal table under TYPES tab of the Global Definition.
While testing the smartform it gives a runtime error i.e. Error generating the test frame.
kindly advice where i am going wrong
Thanks
RaviHi Ravindra ,
Test such smartforms with a program and not through SE37 . Not supported see error message -
<b>The test framework for /1BCDWB/SF00000031 has been regenerated but errors have occurred
Message no. FL821
Diagnosis
One reason can be the complex typing of the function module parameters.
In certain circumstances you cannot access the test cases in the test data directory.
Procedure
The test environment of the function builder cannot map (or map correctly) complex types, so that you cannot read or write this data to the test database.</b>
Cheers -
Help!! Error generating the test frame..
i created a smartfrom and i am trying to fetch data into it. the program is bug free and was activated.
but during execution it popped up this msg..
Error generating the test frame
Message no. FL819
Diagnosis
The system could not generate a syntactically correct test frame for function module /1BCDWB/SF00000166. You therefore cannot test the function module using the test environment. You have probably used an ABAP feature in the interface definition that is not yet supported in the test environment.
The error message is:
"ZCIVILBOQ" must be a flat structure. You cannot use internal tables, strings, references, or structures as components .
System Response
Procedure
Check whether you can change the interface of the function module so that it is possible to generate the test frame. If this is not possible,you will have to write your own utility for testing the function module.
Procedure for System Administration
plzz help..
Edited by: Sumit Nene on Dec 31, 2008 5:30 AMthe table zcivilboq has already been defined in DDIC. why to define it in th form?
yes but i have created an Internal table IT like zcivilboq in form interface. -
ABAP: error generating the test frame
Hi ABAP gurus,
I received below error during execute/test the function module. Could anyone help or advice me why i'm getting the below error.
Error generating the test frame
Message no. FL819
Diagnosis
The system could not generate a syntactically correct test frame for function module ZDEV_DC_REALLIGNMENT_C4. You therefore cannot test the function module using the test environment. You have probably used an ABAP feature in the interface definition that is not yet supported in the test environment.
The error message is:
"ANY TABLE" expected, not "HASHED TABLE".
System response
Procedure
Check whether you can change the interface of the function module so that it is possible to generate the test frame. If this is not possible,you will have to write your own utility for testing the function module.
Procedure for System Administration
Thanks.
Best regards,
ShantiHello Shanti
In the interface of the function module apparently a HASHED table type is used which cannot be generated in the test environment.
Either you replace you HASHED table type with a STANDARD (or ANY) table type or you write a litle report which calls your function module.
This is a normal limitation of the test environment in SE37.
Regards
Uwe -
Simple error... Unknown solution...?
Alright well this is a simple error and when i got it i thought alright well that's simple enough to fix.
But wow wth, it won't fix. Lol.
This is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: server (wrong name: n
et/stanyer/server)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .At first, you think "wth, obviously you are directing it to the wrong class name..." but i'm not ;S
This is the directory of the run file; C:\Documents and Settings\Administrator\Desktop\stanyer_new
This is the location of the class file "server"; C:\Documents and Settings\Administrator\Desktop\stanyer_new\bin\net\stanyer\server.class
And this is my run.bat file;
@echo off
title Stanyer's 503 (server)
cd bin/net/stanyer/
java -Xmx1024m server 43594
pauseWhat on earth am i doing wrong? Thanks.
Edited by: Ryan_Stanyer on Aug 9, 2008 1:25 PMWorks..
But errrrr;
Exception in thread "main" java.lang.NoSuchMethodError: main
Press any key to continue . . .However:
* @author Stanyer
* The main class of the server, contains the method main(String[] args)
* which is the first method called and the entire server is started from
* that method, so any important variables that need to be set can be set
* from within that method.
package net.stanyer;
import net.stanyer.misc.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
public class server implements Runnable {
protected misc _misc = new misc();
protected ServerSocket main_socket;
protected boolean server_active = true;
protected int port;
public server() {
public void main(String[] args) {
port = _misc.parse_int(args[0]);
public void run() {
try {
main_socket = new ServerSocket(port);
_misc.cmd_log("Server was opened on port: "+port+".");
} catch(Exception _ex) {
server_active = false;
_misc.cmd_log("Server was unable to start: port may already be in use?");
}There is a main method.. Lol? -
Assertion Failed error in Load test.
hi all
i am getting the following error during load test when clicking on a button in a row in a table which extends
ObjectArrayDataProvider.This error around 10 to 20 times for 1500 users load test after around half an hour.
my ui: table tag contains the following tags nested in it
<ui:tableRowGroup binding="#{view$ViewCommodityPrices.tableRowGroup1}" id="tableRowGroup1" rows="10"
sourceData="#{view$ViewCommodityPrices.defaultTableDataProvider}" sourceVar="currentRow">
<ui:tableColumn binding="#{view$ViewCommodityPrices.tableColumn1}" headerText="Customer Type" id="tableColumn1">
<ui:staticText binding="#{view$ViewCommodityPrices.cust_type_statictext}" id="cust_type_statictext" text="#{currentRow.value['column1']}"/>
</ui:tableColumn>
SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : javax.servlet.ServletException: Assertion Failed
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at mgeretail.gateway.SecurityFilter.doFilter(SecurityFilter.java:205)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.cj.gzipflt.GzipFilter.doFilter(GzipFilter.java:47)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
---- Begin backtrace for Nested Throwables
javax.faces.FacesException: Assertion Failed
at com.sun.faces.util.Util.doAssert(Util.java:1353)
at com.sun.faces.util.InstancePool.checkin(InstancePool.java:157)
at com.sun.faces.el.ValueBindingImpl.checkinExpressionInfo(ValueBindingImpl.java:449)
at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:375)
at com.sun.rave.web.ui.util.ConversionUtilities.convertValueToObject(ConversionUtilities.java:103)
at com.sun.rave.web.ui.util.ConversionUtilities.convertRenderedValue(ConversionUtilities.java:614)
at com.sun.rave.web.ui.component.HiddenField.getConvertedValue(HiddenField.java:98)
at javax.faces.component.UIInput.validate(UIInput.java:638)
at javax.faces.component.UIInput.executeValidate(UIInput.java:849)
at javax.faces.component.UIInput.processValidators(UIInput.java:412)
at com.sun.rave.web.ui.component.TableRowGroup.iterateTableColumnChildren(TableRowGroup.java:2069)
at com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1990)
at com.sun.rave.web.ui.component.TableRowGroup.processValidators(TableRowGroup.java:1720)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIForm.processValidators(UIForm.java:170)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:946)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:373)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:80)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at mgeretail.gateway.SecurityFilter.doFilter(SecurityFilter.java:205)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.cj.gzipflt.GzipFilter.doFilter(GzipFilter.java:47)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)Upgrade to 1.1_02 [1]. The instance pool stuff was removed in that release.
[1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=5222 -
I am relatively new to java and I'm really struggling on a uni assignment. This is probably a very simple error to fiz but I can't seem to be able to solve it. Thanks in advance.
java:28: incompatible types
found : void
required: int
Year = getYear();
^
1 error
Tool completed with exit code 1:
public static void main(String[] args) throws IOException
String entry, anyEntry;
char option;
int month;
int Year;
initialiseVariables();
Year = getYear();
}Ok I get that but I have tried using String, Long and int and they all have problems. I have also got some other errors that I need explaining:
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:25: incompatible types
found : void
required: int
int Year = getYear();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:26: incompatible types
found : void
required: boolean
boolean LeapYear = isLeapYear(Year);
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:27: incompatible types
found : java.lang.String
required: java.io.File
File DataFile = ("Data" + Year + ".txt");
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:33: getMonthDays(int,java.lang.String) in Meteorological cannot be applied to (int,boolean)
int NumDays = getMonthDays(month,LeapYear);
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:40: incompatible types
found : void
required: int
int MonthNum = getMonth();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:44: cannot find symbol
symbol : variable reply
location: class Meteorological
}while (reply.equals("y"));
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:68: cannot find symbol
symbol : variable Year
location: class Meteorological
Year = input.nextLine ();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:69: cannot find symbol
symbol : variable FileName
location: class Meteorological
FileName = ("Data" + Year + ".txt");
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:69: cannot find symbol
symbol : variable Year
location: class Meteorological
FileName = ("Data" + Year + ".txt");
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:70: cannot find symbol
symbol : variable FileName
location: class Meteorological
while (!FileName.exists())
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:74: incompatible types
found : java.lang.String
required: int
int Year = input.nextLine ();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:75: cannot find symbol
symbol : variable FileName
location: class Meteorological
FileName = ("Data" + Year + ".txt");
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:77: cannot return a value from method whose result type is void
return Year;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:96: cannot return a value from method whose result type is void
return LeapYear;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:108: incompatible types
found : java.lang.String
required: int
Rainfall[MonthNum] = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:110: incompatible types
found : java.lang.String
required: int
MaxTemp[MonthNum] = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:112: incompatible types
found : java.lang.String
required: int
MaxDay[MonthNum] = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:114: incompatible types
found : java.lang.String
required: int
SunHours[MonthNum] = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:124: MonthNum is already defined in getMonthDays(int,java.lang.String)
int MonthNum;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:127: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:131: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:135: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:139: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:143: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:147: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:151: cannot return a value from method whose result type is void
return "31";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:155: cannot return a value from method whose result type is void
return "30";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:159: cannot return a value from method whose result type is void
return "30";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:163: cannot return a value from method whose result type is void
return "30";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:167: cannot return a value from method whose result type is void
return "30";
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:169: operator && cannot be applied to boolean,java.lang.String
if (MonthNum == 2 && LeapYear = true)
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:171: cannot return a value from method whose result type is void
return 29;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:175: cannot return a value from method whose result type is void
return 28;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:184: cannot find symbol
symbol : variable AvgDailyRainfall
location: class Meteorological
AvgDailyRainfall = Rainfall[MonthNum]/NumDays;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:185: cannot find symbol
symbol : variable AvgDailyRainfall
location: class Meteorological
if (AvgDailyRainfall > WettestFigure)
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:187: cannot find symbol
symbol : variable AvgDailyRainfall
location: class Meteorological
WettestFigure = AvgDailyRainfall;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:196: cannot find symbol
symbol : variable AvgDailySun
location: class Meteorological
AvgDailySun = SunHours[MonthNum]/NumDays;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:197: cannot find symbol
symbol : variable AvgDailySun
location: class Meteorological
if (AvgDailySun > MaxSunshine)
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:199: cannot find symbol
symbol : variable AvgDailySun
location: class Meteorological
MaxSunshine = AvgDailySun;
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:221: cannot find symbol
symbol : variable StatsFile
location: class Meteorological
StatsFile = ("Stats" + Year + ".txt");
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:223: cannot find symbol
symbol : variable StatsFile
location: class Meteorological
PrintWriter outFile = new PrintWriter (new File(StatsFile));
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:227: incompatible types
found : java.lang.String
required: int
WettestFigure = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:229: incompatible types
found : java.lang.String
required: int
HighestDay = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:233: incompatible types
found : java.lang.String
required: int
HighestTemp = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:237: incompatible types
found : java.lang.String
required: int
MaxSunshine = input.next();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:256: incompatible types
found : java.lang.String
required: int
MonthNum = input.nextLine();
^
C:\Documents and Settings\Mlawton\My Documents\Uni\Assignment 2\Referral Assignment 2\Meteorological.java:261: cannot return a value from method whose result type is void
return MonthNum;
Maybe you are looking for
-
I have 2 different iTunes account one is my iPod touch and the other is on my iPhone 4S I redeemed a giftcard on my iPod but I would rather have it on my iPhone Anyone know how I can take it off my iPod and onto my phone?
-
Performance on intel imac - system almost unusable
I'm running iPhoto 6.04 on a 2GHz intel imac with 2GB of Ram. When I launch iPhoto -- everything slows unbearably. Even the typing speed in other applications, the finder is unresponsive, applications quit, It takes forever to switch between applicat
-
Print Multiple Pdf's with Acrobat X pro
I would like to print multiple pdf's from folder but when i highlight like 7 pdf's then do right click there is no option to print. We had this option in acrobat 9 pro. Also one of the user computer only ahve acrobat reader and that user able to pri
-
Need Help in Getting the below output
Hi All, The below is the table data. col1 col2 col3 col4 col5 col6 Aa 1 Con 100 10 -1 Ba 2 Cam 50 2 33 Aa 1 Con 200 20 -2 Ca 3 val 2 5 -10 Aa 1
-
CS5 – Should codes on packaging & CD match?
I am trying to determine if there is a correlation between the code on packaging and that on the CDs for Adobe CS5 Design Premium. The pack shows line 1: 9101xxxx and line 2: DVS/A, MDIA, 5.0, WIN,GEN,WWE,ACT. The CD only shows 9101yyyy 1/10. That