Hi, i get [CODE]undefined reference to 'boost::gregorian::greg_month::get_month_map_ptr() '[/CODE] on the following code using Eclipse CDT and MinGW .. [CODE] #include "boost/date_time/gregorian/gregorian.hpp" #include <iostream> int main() { using namespace boost::gregorian; std::string s; std::cout << "Enter birth day YYYY-MM-DD (eg: 2002-02-01): "; std::cin >> s; try { date birthday(from_simple_string(s)); date today = … |
|
Hi, am using MyEclipse. The tutorial is on Hibernate & Spring ... [code] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:94) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:118) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:87) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:72) at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61) at com.myeclipse.hibernatespring.BusinessLogic.main(BusinessLogic.java:23) [/code] I do have the commons-loggin.jar added to the Java Build Path ... My class ... [code] … |
|
I have the following table [code] <!-- Static Headers --> <table style="width: 620px"> <thead> <tr> <td colspan="3" width="15"></td> </tr> <tr valign="top" class="results_headings"> <td width="35%">Force Number</td> <td width="35%">Name</td> <td width="30%">Required Qual Code</td> </tr> </thead> </table> <!-- Scrollable Area --> <div class="scrollable"> <table class="memberlist"> <c:forEach items="${members}" var="mem" varStatus="status"> <tr> <td width="35%"><c:out value="${mem.forceCode}" … |
|
Am not sure if this belong here or to JSP forum, mods kindly move it if it does ... thanx Hi have the this exception, seems my object cannot be found/bound to my form Stack Trace [code] SEVERE: Servlet.service() for servlet debugjsp threw exception java.lang.IllegalStateException: Neither BindingResult nor plain target … |
|
Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) … |
|
Hi, trying to understand this exception.. Happened after i removed and the jar files [code] 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Hibernate 3.3.0.SP1 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: hibernate.properties not found 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Bytecode provider name : javassist 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: using JDK 1.4 java.sql.Timestamp handling … |
|
Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> … |
|
[code] if(!getEmail().matches("^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$")) { errors.add("name",new ActionMessage("email.invalid)); } [/code] Do not FULLY understand the characters starting from '^' .... |
|
Is there a Template Class in Java as in C++, or is Object class in Java similar to Template class in C++ or at least the concepts... |
|
Being new to java am trying to understand the terminology and works around... If i have a simple text file userdetails.txt which contains users name, password, home_dir_context (this is just for questioning).. Which function between the two do i use to get the path where this is located : c:/Java … |
|
Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ … |
|
I get this error in the following code [code] //Error... error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion) void Menu::readDates(istream& in, Date& dates) { in >> dates.getDay() >> dates.getMonth() >> dates.getYear(); } [/code] Thought '>>' can … |
|
Hi friends, trying to pass an ifstream to a function expecting an ostream...Should this be a problem? [code] ifstream fleetin; fleetin.open (filename); read(fleetin); //Error.... : cannot convert parameter 1 from 'std::ifstream' to 'std::ostream &' [/code] My parameter is declared as ostream&, or maybe i should just remove the '&', but … |
|
Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); … |
|
why is this giving a syntax error? [code] int function ( int x) { x ? return 1 : return 0; } error C2059: syntax error : 'return' [/code] |
|
here's my code [code] #include <math.h> #define M_PI 3.14159265358979323846 // Calculate Constant double constant() { const double figure = 7.9454E-18; double number = log (figure); return -10 * number ; } [/code] The value in number should be -17.099... But i get -39.379... What's the problem here? |
|
I'm trying to represent a number such as [B]1.45E-15[/B] in C... How do i do this... I know there's pow() & exp() function but i don't think they are useful here... |
|
Hi friends, here's my code.. [code] OnCreate(hwnd,cs,initRecArea(480,45,55,20),(HMENU)IDCE_SINGLELINE5); OnCreate(hwnd,cs,initRecArea(480,105,55,20),(HMENU)IDCE_SINGLELINE7); OnCreate(hwnd,cs,initRecArea(480,135,55,20),(HMENU)IDCE_SINGLELINE8); OnCreate(hwnd,cs,initRecArea(480,165,55,20),(HMENU)IDCE_SINGLELINE9); OnCreate(hwnd,cs,initRecArea(480,195,55,20),(HMENU)IDCE_SINGLELINE10); OnCreate(hwnd,cs,initRecArea(480,225,55,20),(HMENU)IDCE_SINGLELINE11); OnCreate(hwnd,cs,initRecArea(480,255,55,20),(HMENU)IDCE_SINGLELINE12); [/code] Since all these lines are a repetition except the second argument of initRecArea() which increments by 30, and last argument of OnCreate() which only has the last character changing, i would prefer looping this code as … |
|
Hi all, i'm using Visual Studio 2005 and by mistake enable the arrows which represents tabs and dots with represents spaces when coding... How do i disable this? |
|
Hi all, new here so have 1 question... Am wondering this forum has a section for Windows Programming discussions |
0 Reputation Points
0 Endorsements
Ranked #5K
~3K People Reached
Favorite Forums
Software Development
x
37
Web Development
x
2